fixes for physics

This commit is contained in:
2026-03-17 01:01:10 +02:00
parent f3ed144fb5
commit 0a506f7185
24 changed files with 179 additions and 74 deletions

View File

@@ -4,6 +4,7 @@
//
//===========================================================================//
#include "tier0/lib.h"
#include "physics.h"
#define PHYSICS_OBJECT_DEFINED
#define TRIG_H
@@ -95,9 +96,9 @@ public:
return CRapierPhysics_CreateCube(m_pRustHandle, ball);
}
virtual HShape CreateTriangles( TrianglesShape_t shape ) override
virtual HShape CreateTriangleMesh( TriangleMeshShape_t shape ) override
{
return CRapierPhysics_CreateCube(m_pRustHandle, shape);
return CRapierPhysics_CreateTriangleMesh(m_pRustHandle, shape);
}
virtual void DestroyShape( HShape hShape ) override