diff options
author | Wilson E. Alvarez <wilson.e.alvarez1@gmail.com> | 2017-08-21 15:15:36 -0400 |
---|---|---|
committer | Wilson E. Alvarez <wilson.e.alvarez1@gmail.com> | 2017-08-21 15:15:55 -0400 |
commit | 738d2ab96997faa1e13b91e38cf8a0000d829f70 (patch) | |
tree | e33258663017edb924695e68224ba836e5fc9f08 /scene/3d/vehicle_body.cpp | |
parent | 4717d37bfa867d8cdcd4805967324978da6701b7 (diff) | |
download | redot-engine-738d2ab96997faa1e13b91e38cf8a0000d829f70.tar.gz |
Removed unnecessary assignments
Diffstat (limited to 'scene/3d/vehicle_body.cpp')
-rw-r--r-- | scene/3d/vehicle_body.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/3d/vehicle_body.cpp b/scene/3d/vehicle_body.cpp index adf235c525..2a41c8f30e 100644 --- a/scene/3d/vehicle_body.cpp +++ b/scene/3d/vehicle_body.cpp @@ -559,6 +559,9 @@ void VehicleBody::_resolve_single_bilateral(PhysicsDirectBodyState *s, const Vec b2invinertia, b2invmass); + // FIXME: rel_vel assignment here is overwritten by the following assignment. + // What seemes to be intented in the next next assignment is: rel_vel = normal.dot(rel_vel); + // Investigate why. real_t rel_vel = jac.getRelativeVelocity( s->get_linear_velocity(), s->get_transform().basis.transposed().xform(s->get_angular_velocity()), |