Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 01:28
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 609 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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 | chip programmers | 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