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
1 registered members (TipmyPip), 18,449 guests, and 6 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
Gravity #323047
05/11/10 11:51
05/11/10 11:51
Joined: Feb 2010
Posts: 43
in Italia
RoboWarrior Offline OP
Newbie
RoboWarrior  Offline OP
Newbie

Joined: Feb 2010
Posts: 43
in Italia
What I have to know to implement gravity in my game? Thank You!


PC
processore Dual-Core Centrino 2 3.3 Ghz
video card NVIDIA 1GB
HDD 640 GB
RAM 8 GB
Windows 7
3D Game Studio A7 commercial edition
FACEBOOK: http://www.facebook.com/home.php?#!/profile.php?ref=profile&id=100000540297412
Re: Gravity [Re: RoboWarrior] #323057
05/11/10 12:58
05/11/10 12:58
Joined: Apr 2007
Posts: 125
Brazil - São Paulo
Ericmor Offline
Member
Ericmor  Offline
Member

Joined: Apr 2007
Posts: 125
Brazil - São Paulo
Check "c_move(ENTITY* entity,VECTOR* reldist,VECTOR* absdist,var mode) " code in the manual.
Also, this: "Gamestudio Physics - Frequently Asked Questions" in the manual.

In a nutshell, players and NPCs use c_move and c_trace to simulate gravity and movement, there's a code equation for that, and the internal phisics engine simulates realistic collisions, but only between rigid bodies (the models won't animate or morph).
Usually, the same "funtion gravity()" is shared by all NPCs and stuff that needs to fall on the ground.

Re: Gravity [Re: Ericmor] #323235
05/12/10 14:29
05/12/10 14:29
Joined: Feb 2010
Posts: 43
in Italia
RoboWarrior Offline OP
Newbie
RoboWarrior  Offline OP
Newbie

Joined: Feb 2010
Posts: 43
in Italia
could you write an example code, please? Thank you!


PC
processore Dual-Core Centrino 2 3.3 Ghz
video card NVIDIA 1GB
HDD 640 GB
RAM 8 GB
Windows 7
3D Game Studio A7 commercial edition
FACEBOOK: http://www.facebook.com/home.php?#!/profile.php?ref=profile&id=100000540297412
Re: Gravity [Re: RoboWarrior] #323298
05/12/10 23:30
05/12/10 23:30
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Look into the manual, there is already an example in the c_move chapter.


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