entity | Registered entity pointer (actor). |
BodyFlag |
NX_BF_DISABLE_GRAVITY - disables gravity.
NX_BF_FROZEN_POS_X - disables a certain axis. NX_BF_FROZEN_POS_Z NX_BF_FROZEN_POS_Y NX_BF_FROZEN_ROLL NX_BF_FROZEN_PAN NX_BF_FROZEN_TILT NX_BF_FROZEN_POS - disables y, y, z. NX_BF_FROZEN_ROT - disables pan, tilt, roll. NX_BF_KINEMATIC - activates kinematic control. NX_BF_FILTER_SLEEP_VEL NX_BF_ENERGY_SLEEP_TEST |
on | 1 for setting, 0 for resetting the flag |
pXent_setbodyflag (my, NX_BF_DISABLE_GRAVITY,1); // no gravity for the my entity only
pXent_setbodyflagall (NX_BF_DISABLE_GRAVITY,1); // no gravity for all entities