BulletSim: fix physical object appearing to slowly float off when

they stop moving.
user_profiles
Robert Adams 2013-02-16 19:28:38 -08:00
parent 3108d18ffb
commit e549c2922a
1 changed files with 1 additions and 1 deletions

View File

@ -1667,7 +1667,7 @@ public class BSPrim : BSPhysObject
// _velocity = entprop.Velocity; // _velocity = entprop.Velocity;
// DEBUG DEBUG DEBUG -- smooth velocity changes a bit. The simulator seems to be // DEBUG DEBUG DEBUG -- smooth velocity changes a bit. The simulator seems to be
// very sensitive to velocity changes. // very sensitive to velocity changes.
if (!entprop.Velocity.ApproxEquals(_velocity, 0.1f)) if (entprop.Velocity == OMV.Vector3.Zero || !entprop.Velocity.ApproxEquals(_velocity, 0.1f))
_velocity = entprop.Velocity; _velocity = entprop.Velocity;
_acceleration = entprop.Acceleration; _acceleration = entprop.Acceleration;
_rotationalVelocity = entprop.RotationalVelocity; _rotationalVelocity = entprop.RotationalVelocity;