Game Development Community

physx bounding box

by Andy Simon · in Torque 3D Professional · 11/20/2009 (5:35 pm) · 1 replies

I'm putting in some of my own physx objects into a level. I basically have a box that i want to be able to push over. Seems i've gotten it to "work" in the engine, but the bounding box for the box is huge. The box is about .5m tall and wide but the bounds are about 10 meters tall. Its like the physx actor is really big, but its just slightly larger than my non actor mesh box. (in 3ds max that is)

any ideas? Its probably just something simple.

#1
11/20/2009 (6:30 pm)
Well i found the problem, i wonder if its a bug in the physx plugin. It was doing some weird stuff earlier until i reinstalled it.

In the xml file generated, these lines were the problem
<NxBoxShapeDesc dimensions="0.542 0.677 0.5">
<NxShapeDesc userProperties="" name="trashcan_pxactor">
<localPose>1 0 0 0 1 0 0 0 1 0 0 0</localPose>

dimensions was set to liek 13 10 10 or something like that. and localpose looked like
1 0 0 0 1 0 0 0 1 0 0 41.234102