Rigid body tool format

Vectrex

21-08-2006 17:03:03

hi walaber. I was perusing the xml format you use for props in stunt pg and notice you store all the vertices for convex hulls in the xml. Any particular reason? I figured it was for speed but I would have thought reading an xml file would be as slow as letting newton create the hull at load time.

walaber

21-08-2006 17:08:18

this way, you can make a convex hull out of a slightly different shape than the actual mesh, and use it with the physics. for example, the cars in Stunt Playground often have 2 or 3 convex hulls combined together to make the collision shape... there were created from smaller pieces of the whole.

I save the vertices in the XML so that you don't need the extra .mesh files to make those other hulls.