I don't wanna my car pitch or roll

kidcdf

23-01-2008 14:37:06

my car is a bumpercar which has no wheel, so I just wanna it collision with others and forward ,backward or jump( Y-axis movement), but now,as soon as heavy collision happens,my car will pitch or roll (flip over), I have tried to set CMass to (x,0.1,y),but it still flip when in a high speed collision. Have u any methods to stop these things ?

betajaen

23-01-2008 14:58:42

Do you mean the car has no WheelShapes? You can limit the direction of travel, the method name escapes me this moment but it's in Actor. You specify which directions you want it to move and don't move in.

kidcdf

24-01-2008 04:10:57

Do you mean the car has no WheelShapes? You can limit the direction of travel, the method name escapes me this moment but it's in Actor. You specify which directions you want it to move and don't move in.
I can't find the method you said in actor....
now I invented another method,to setMaxAngularVelocity to Zero,and it does work!

kidcdf

24-01-2008 05:43:18

Do you mean the car has no WheelShapes? You can limit the direction of travel, the method name escapes me this moment but it's in Actor. You specify which directions you want it to move and don't move in.
can you tell me thsi specified method? I am keen on using it!

Aiursrage2k

24-01-2008 06:01:36

Not entirely sure but you accomplish this with freeze flags.
NX_BF_FROZEN_POS_X
NX_BF_FROZEN_POS_Y
NX_BF_FROZEN_POS_Z
NX_BF_FROZEN_ROT_X
NX_BF_FROZEN_ROT_Y
NX_BF_FROZEN_ROT_Z
NX_BF_FROZEN_POS
NX_BF_FROZEN_ROT
NX_BF_FROZEN
NX_BF_DISABLE_GRAVITY
raiseBodyFlag(NX_BF_FROZEN_ROT_X);

kidcdf

24-01-2008 07:41:37

Not entirely sure but you accomplish this with freeze flags.
NX_BF_FROZEN_POS_X
NX_BF_FROZEN_POS_Y
NX_BF_FROZEN_POS_Z
NX_BF_FROZEN_ROT_X
NX_BF_FROZEN_ROT_Y
NX_BF_FROZEN_ROT_Z
NX_BF_FROZEN_POS
NX_BF_FROZEN_ROT
NX_BF_FROZEN
NX_BF_DISABLE_GRAVITY
raiseBodyFlag(NX_BF_FROZEN_ROT_X);

it's wonderful! how can u know that without enough NxOgre Documents?

betajaen

24-01-2008 10:33:47

There is a 27 Meg document that comes with PhysX that tells you these things. If you haven't noticed already all the methods in Actor are the same in NxActor which are documentated in said PhysX documentation. :roll: