I need to learn true type (pXent_settype)

Posted By: Mehmetk

I need to learn true type (pXent_settype) - 11/11/12 21:20

I am learning lite-c.
I tried to make walk effect but I wasn't succes. My player is not effective gravity. so gravity isnt work. I don't know why. can somebody help me? Here is my codes.
https://hotfile.com/dl/179180725/8ad844c/moveentity.rar.html
Posted By: MasterQ32

Re: I need to learn true type (pXent_settype) - 11/12/12 09:31

have you called physX_open() before the first level_load?
is your player PH_STATIC, PH_RIGID or PH_CHAR?
do you set your player to kinematic?
Posted By: kadir

Re: I need to learn true type (pXent_settype) - 11/12/12 11:39

Yeah i have that problem too. how can i move the character with physX. are we use the pXent_move function to move the player or use again c_move?
Posted By: 3dgs_snake

Re: I need to learn true type (pXent_settype) - 11/12/12 11:46

To move a character, you need to create a PH_CHAR or a rigid body with a kinematic flag set and move the entity using pXent_move(You need to simulate the gravity yourself). You can get some example here. To use the default GS physX plugin, remove the "3" from the function names and the include.
Posted By: Mehmetk

Re: I need to learn true type (pXent_settype) - 11/12/12 18:06

Thank you very much for your advice. Code samples would be help to me.Onces again thank you everyone.
© 2024 lite-C Forums