mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-05 19:57:40 +00:00
Merge 839debff57 into 0b73e701ac
This commit is contained in:
commit
9028b355e0
1138 changed files with 216458 additions and 155 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue