JOLT Physics update

adds jolt physics to torque3d
This commit is contained in:
marauder2k7 2026-04-04 11:58:44 +01:00
parent d331731aa1
commit 48312ae20e
16 changed files with 2700 additions and 3 deletions

View file

@ -2587,11 +2587,15 @@ void MeshRoad::_generateSegments()
polylist.triangulate();
PhysicsCollision *colShape = PHYSICSMGR->createCollision();
colShape->addTriangleMesh( polylist.mVertexList.address(),
if (!colShape->addTriangleMesh(polylist.mVertexList.address(),
polylist.mVertexList.size(),
polylist.mIndexList.address(),
polylist.mIndexList.size() / 3,
MatrixF::Identity );
getWorldTransform()))
{
// failed to create mesh, get out GET OUT NOWWWW
return;
}
PhysicsWorld *world = PHYSICSMGR->getWorld( isServerObject() ? "server" : "client" );
mPhysicsRep = PHYSICSMGR->createBody();