0 Replies Latest reply on Dec 15, 2010 8:00 AM by Jhon Carlo

    Collision between two rigid body with physx.

    Jhon Carlo Level 1

      Does anybody have a very simple example how control a collision between two rigid body with physx?

       

      I have n rigid body created with a random process that assign, for each rigid body, a name (b1, b2, b3 etc). I know how to get their name and put it inside a text, but I don't know how to assign a function when a rigid body collide with another one (for exemple:  "when b1 collide with b2 then play sound Y"). In other words I don't know how control the collision . The rigid bodies move without mouse or keyboard interaction but because of their collision.

       

      I have a little knowledge of 3d Director and PhysX and  I hope someone write a book about this theme with cd demos.

       

      Can someone give me an hint?