Gamestudio Links
Zorro Links
Newest Posts
contractUpdate() is filtering if >2 rows
by mistery. 11/09/26 12:06
New Zorro version 3.15
by jcl. 11/09/26 09:24
Removing outliers from files
by jcl. 11/04/26 10:30
[MED] Import from FBX (2010) missing!!!
by rayp. 11/03/26 14:33
What are you working on?
by rayp. 11/02/26 13:57
No connection to MT4
by JeyKey II. 10/29/26 09:34
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (vince), 8,103 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
MaliceTheMaker, Haitao_Ren, JimSimons, julienp, julienper
19248 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