Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,561 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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