mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 07:04:36 +00:00
update rigid to work with physics api
This commit is contained in:
parent
c03cedec6f
commit
839debff57
4 changed files with 454 additions and 151 deletions
|
|
@ -119,7 +119,7 @@ class RigidShapeData : public ShapeBaseData
|
|||
F32 splashVelEpsilon;
|
||||
|
||||
bool enablePhysicsRep;
|
||||
|
||||
bool isDynamic;
|
||||
|
||||
F32 dragForce;
|
||||
F32 vertFactor;
|
||||
|
|
@ -189,6 +189,10 @@ class RigidShape: public ShapeBase
|
|||
};
|
||||
|
||||
PhysicsBody* mPhysicsRep;
|
||||
/// Current physics state (used by the dynamic-body path).
|
||||
PhysicsState mState;
|
||||
/// Previous and current render states for the dynamic-body path.
|
||||
PhysicsState mRenderState[2];
|
||||
|
||||
StateDelta mDelta;
|
||||
S32 mPredictionCount; ///< Number of ticks to predict
|
||||
|
|
@ -243,6 +247,8 @@ class RigidShape: public ShapeBase
|
|||
|
||||
void updateForces(F32 dt);
|
||||
|
||||
void _updateContainerForces();
|
||||
|
||||
public:
|
||||
// Test code...
|
||||
static ClippedPolyList* sPolyList;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue