Moving ....

Posted By: Mafia_IR

Moving .... - 05/13/11 06:34

why i cant move player(character) with physX :

i use this code :
Code:
physX_open();
first_player = ent_create("player_mdl.mdl",vector(198,-298,-26),first_player_function);
pXent_settype(first_player,PH_RIGID ,PH_CAPSULE); 
   pXent_setfriction(first_player,50);



when i use this code i cant move character , and it moving like a ball ... how can i move it and control this model ?

Heeeellllllppppp cry
Posted By: 3dgs_snake

Re: Moving .... - 05/13/11 07:16

Hi,

If you define you player entity as a rigid body, you need a force to move it. If you want to a charachter controller , you need to define you player as PH_CHAR and move it with pXent_movelocal and pXent_moveglobal.

PS : look here for an example

Best regards.
© 2023 lite-C Forums