update rigid to work with physics api

This commit is contained in:
marauder2k7 2026-06-06 16:06:17 +01:00
parent c03cedec6f
commit 839debff57
4 changed files with 454 additions and 151 deletions

View file

@ -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;