Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
2 registered members (Grant, AndrewAMD), 911 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
PhysX-based Player Movement #375853
06/28/11 13:18
06/28/11 13:18
Joined: Aug 2009
Posts: 1,438
Spain
painkiller Offline OP
Serious User
painkiller  Offline OP
Serious User

Joined: Aug 2009
Posts: 1,438
Spain
I've developed a simple player movement code using PhysX and decided to contribute it as it seems that there are a lot of people having problems with characters and PhysX. It's using PH_RIGID and PH_CAPSULE

Includes walking, running (shift key) and jumping. As player is PH_RIGID, you can have many advantages, such as:
-proper inertia when jumping of falling
-correct interaction with other movable objects, such as boxes
-player speed on high slopes is lower

Link with code and demo level: http://www.mediafire.com/?zgji7nizozqk748

Last edited by painkiller; 06/28/11 13:19.

3D Gamestudio A8 Pro
AMD FX 8350 4.00 Ghz
16GB RAM
Gigabyte GeForce GTX 960 4GB
Re: PhysX-based Player Movement [Re: painkiller] #375854
06/28/11 13:33
06/28/11 13:33
Joined: Jan 2011
Posts: 122
GUILIN , CHINA
tzw Offline
Member
tzw  Offline
Member

Joined: Jan 2011
Posts: 122
GUILIN , CHINA
thx!


Full of my eyes are class struggles.....
Re: PhysX-based Player Movement [Re: painkiller] #375855
06/28/11 13:34
06/28/11 13:34
Joined: Jul 2004
Posts: 785
Serbia
Iglarion Offline
User
Iglarion  Offline
User

Joined: Jul 2004
Posts: 785
Serbia
I tested level and code work really nice.
Good job!

Thanks painkiller!


IGRAVISION Page - www.igravision.com
RPG project - The Battle For Forgol 92.75%
Re: PhysX-based Player Movement [Re: Iglarion] #375858
06/28/11 14:33
06/28/11 14:33
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
Really nice, thank you. Comes in handy when working on Po... ahhhh... shhhhhh... smile

Re: PhysX-based Player Movement [Re: HeelX] #395438
02/23/12 15:35
02/23/12 15:35
Joined: Mar 2006
Posts: 1,993
Karlsruhe
PadMalcom Offline
Serious User
PadMalcom  Offline
Serious User

Joined: Mar 2006
Posts: 1,993
Karlsruhe
The player is falling too slowly, feels like being on the moon. Does anybody know which parameter except the constant of gravitation?

Really good work btw! Especially, I like the collision with the boxes!

Last edited by PadMalcom; 02/24/12 09:22.
Re: PhysX-based Player Movement [Re: PadMalcom] #395511
02/24/12 10:06
02/24/12 10:06
Joined: May 2009
Posts: 5,365
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,365
Caucasus
May be you could play with the mass of the player and pX_setunit. Just a quick thought.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: PhysX-based Player Movement [Re: 3run] #395517
02/24/12 10:34
02/24/12 10:34
Joined: Mar 2006
Posts: 1,993
Karlsruhe
PadMalcom Offline
Serious User
PadMalcom  Offline
Serious User

Joined: Mar 2006
Posts: 1,993
Karlsruhe
Hey 3run, I'm @fixing the values and post my corrected version when I'm done.

Re: PhysX-based Player Movement [Re: painkiller] #401255
05/15/12 21:40
05/15/12 21:40
Joined: Jul 2008
Posts: 168
8
82RJZAE Offline
Member
82RJZAE  Offline
Member
8

Joined: Jul 2008
Posts: 168
The player isn't able to walk up the stairs. Any solution to this problem?

Thanks,
82RJZAE


Moderated by  adoado, checkbutton, mk_1, Perro 

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