How to implement NON_PUSHABLE bodies?

Victorliu17

05-06-2008 16:18:48

Hi all!

I have a character and many ordinary bodies set up in a scene. Everything is working fine. Now I want to make all bodies NON_PUSHABLE that my character can NOT exercise any force on them.

I noticed in Ageia SDK a sample program "SampleCharacterController.exe" demonstrated different bodies, some can be pushed by a character, while some others cannot.

Is it possible to realise this with NxOgre and how to do it?

Any suggestion is appreciated! I'm using NxOgre 0.9

Rasengan

09-07-2008 17:16:17

Try this:


// COLLIDABLE_NON_PUSHABLE OBJECT.
...
actorParams.mDensity = 1.0f;
actorParams.mMass = 0.0f;


to your physX objects.

betajaen

09-07-2008 18:13:00

No, setting it static is silly.

You should try out Dominance Groups, or if your using a Character then a Collision Mask.