Game Development Community

declare a staticobj in Full PhysX

by qimieyan · in Torque 3D Professional · 11/12/2012 (6:54 am) · 3 replies

I put a stone Model with StaticShapeData in my Game.When I test the stone ,I can go Through the stone without collision.
How can I declare a staticobj with collision in in Full PhysX Project??
Please help me out! Thanks.

#1
11/12/2012 (7:34 am)
If your model doesn't have a collision mesh on it then you can set the object to use visible mesh collision as it's collision type in the world editor. Note that you don't want to use this for everything in your level as it will result in a drop in performance.
#2
11/12/2012 (7:46 am)
My model has a collision mesh on it. I put it into the simple Project.It works with collision mesh. While I put it into in Full PhysX Project ,I can get go through the stone (even the station model in T3D).
#3
11/12/2012 (6:01 pm)
TSStatics can have the visible mesh set as the collision mesh but I don't think StaticShapes can.

StaticShape objects don't have collision in a PhysX build.

Try using a PhysicsShape in its place, or add it to the scene through the editor as a TSStatic.