Cleanup ElectricityEffect class
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 23s

This commit is contained in:
Stephen Seo 2023-08-24 16:01:43 +09:00
parent 8b44a59317
commit ff45edbece
2 changed files with 1 additions and 7 deletions

View file

@ -13,11 +13,7 @@
ElectricityEffect::ElectricityEffect(Vector3 center, float radius,
int line_count, float lifetime)
: cylinders(),
center(center),
cylinder_radius(CYLINDER_MAX_RADIUS),
lifetime(lifetime),
timer(0.0F) {
: cylinders(), lifetime(lifetime), timer(0.0F) {
cylinders.reserve(line_count);
// Generate cylinders.

View file

@ -28,8 +28,6 @@ class ElectricityEffect {
};
std::vector<Cylinder> cylinders;
Vector3 center;
float cylinder_radius;
float lifetime;
float timer;
};