Gamestudio Links
Zorro Links
Newest Posts
Black Book, 4th edition
by jcl. 03/17/26 09:28
Trying to get started...
by Lukudo. 03/16/26 09:08
ZorroGPT
by TipmyPip. 03/08/26 18:50
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (VoroneTZ, AndrewAMD, 1 invisible), 5,926 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
mredit, vestriaa, Lukudo, mldenoiser, the1
19204 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Moving .... #370409
05/13/11 06:34
05/13/11 06:34
Joined: Aug 2010
Posts: 131
Iran
Mafia_IR Offline OP
Member
Mafia_IR  Offline OP
Member

Joined: Aug 2010
Posts: 131
Iran
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

Last edited by Mafia_IR; 05/13/11 06:53.
Re: Moving .... [Re: Mafia_IR] #370415
05/13/11 07:16
05/13/11 07:16
Joined: Feb 2010
Posts: 320
TANA/Madagascar
3dgs_snake Offline
Senior Member
3dgs_snake  Offline
Senior Member

Joined: Feb 2010
Posts: 320
TANA/Madagascar
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.


Moderated by  HeelX, Spirit 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1