physics save/load added

This commit is contained in:
2026-04-02 02:40:40 +03:00
parent 2371ba3b19
commit d68da8fc04
21 changed files with 3348 additions and 3 deletions

View File

@@ -1582,6 +1582,12 @@ JPH::ShapeRefC JoltPhysicsWrapper::createSphereShape(float radius)
return phys->createSphereShape(radius);
}
JPH::ShapeRefC JoltPhysicsWrapper::createCapsuleShape(float halfHeight,
float radius)
{
return phys->createCapsuleShape(halfHeight, radius);
}
JPH::ShapeRefC JoltPhysicsWrapper::createCylinderShape(float halfHeight,
float radius)
{

View File

@@ -123,6 +123,7 @@ public:
bool isAdded(const JPH::BodyID &body);
JPH::ShapeRefC createBoxShape(const Ogre::Vector3 &extents);
JPH::ShapeRefC createSphereShape(float radius);
JPH::ShapeRefC createCapsuleShape(float halfHeight, float radius);
JPH::ShapeRefC createCylinderShape(float halfHeight, float radius);
JPH::ShapeRefC createMeshShape(Ogre::MeshPtr mesh);
JPH::ShapeRefC createMeshShape(Ogre::String meshName);