New RigidShape method to force client

New forceClientTransform() console method to force a RigidShape's
transform on the client.  This is used when you transform a RigidShape
on the server and want the client to immediately transform rather than
interpolate to the transform.
This commit is contained in:
DavidWyand-GG 2013-01-22 18:44:42 -05:00
parent c7769f0de6
commit 0e87a8b6b7
2 changed files with 30 additions and 5 deletions

View file

@ -152,10 +152,11 @@ class RigidShape: public ShapeBase
WheelCollision = BIT(1),
};
enum MaskBits {
PositionMask = Parent::NextFreeMask << 0,
EnergyMask = Parent::NextFreeMask << 1,
FreezeMask = Parent::NextFreeMask << 2,
NextFreeMask = Parent::NextFreeMask << 3
PositionMask = Parent::NextFreeMask << 0,
EnergyMask = Parent::NextFreeMask << 1,
FreezeMask = Parent::NextFreeMask << 2,
ForceMoveMask = Parent::NextFreeMask << 3,
NextFreeMask = Parent::NextFreeMask << 4
};
void updateDustTrail( F32 dt );
@ -283,6 +284,10 @@ public:
/// @param impulse Impulse vector to apply.
void applyImpulse(const Point3F &r, const Point3F &impulse);
/// Forces the client to jump to the RigidShape's transform rather
/// then warp to it.
void forceClientTransform();
void getCameraParameters(F32 *min, F32* max, Point3F* offset, MatrixF* rot);
void getCameraTransform(F32* pos, MatrixF* mat);
///@}