Forum: Poser - OFFICIAL


Subject: Collision Detection?!?!

daemonhero opened this issue on Mar 01, 2001 ยท 4 posts


ockham posted Thu, 01 March 2001 at 11:06 AM

The Python scripting included in the new ProPack does offer a method for collision detection, at least for body parts. There's an EndPoint function, which gives the actual (X,Y,Z) position of the "outer" end of a limb. For instance, calling EndPoint for the left Forearm gives the actual position of the wrist. You could check at every frame to see if (for instance) the Y dimension of the wrist is below the plane of a table. If you want the hand to hit the table, you can stop the action when it hits, or make it bounce back if that's what you're after. If the other object is more complicated than a table, you'd have to check in three dimensions. ..... ockham

My python page
My ShareCG freebies