need some help about the collision

z789017890

30-07-2010 07:39:33

When the collision occurred
how to get the object's information(the be collision object)
For example:
A ball and a box to be collision
How to get the be collision objects's information
How to delete the be collision object

sorry for my poor english

thanks for help

SFCBias

01-08-2010 02:07:05

Well you need to set up Materials for them before you start updating the world, then set a material callback for them in which Newton will call in the event of a collision. Then you can use the OgreNewt::Contact parameter to extract information and delete it if you wish.