Non-rigid plane

ogre_newbie

24-10-2008 09:27:20

Hi all =]

May I know can I create a non-rigid plane?
I want a plane that can be passed through by other object, all are newton bodies, is it possible?

Thanks !

micken

24-10-2008 17:54:54

I think you are using non-rigid in the wrong context.

If you want one body to pass through another you have to make a MaterialPair out of the two MaterialIDs the objects are using and then make a CustomContactCallback for that pair. Inside the callback you would make the userBegin() function return false. This way when the AABB of the bodies make contact OgreNewt will not process the collision due to userBegin in your callback returning false.