BulletSim: only check position sanity if the prim is physical -- the user can do anything dumb they wish.

0.7.5-pf-bulletsim
Robert Adams 2012-12-06 09:21:04 -08:00
parent 2ecd8e6720
commit cc59e3cbdf
1 changed files with 1 additions and 3 deletions

View File

@ -1399,7 +1399,7 @@ public sealed class BSPrim : BSPhysObject
_rotationalVelocity = entprop.RotationalVelocity;
// The sanity check can change the velocity and/or position.
if (PositionSanityCheck(true))
if (IsPhysical && PositionSanityCheck(true))
{
entprop.Position = _position;
entprop.Velocity = _velocity;
@ -1413,8 +1413,6 @@ public sealed class BSPrim : BSPhysObject
DetailLog("{0},BSPrim.UpdateProperties,call,pos={1},orient={2},dir={3},vel={4},rotVel={5}",
LocalID, _position, _orientation, direction, _velocity, _rotationalVelocity);
// BulletSimAPI.DumpRigidBody2(PhysicsScene.World.ptr, BSBody.ptr); // DEBUG DEBUG DEBUG
base.RequestPhysicsterseUpdate();
}
/*