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
Help Im a Noob at Game Physics! #56647
09/30/05 19:34
09/30/05 19:34
Joined: Sep 2005
Posts: 6
Guitar_Mace Offline OP
Newbie
Guitar_Mace  Offline OP
Newbie

Joined: Sep 2005
Posts: 6
Hi,
I have just started a new racing game and because I dont know much about A6 yet I dont have a clue how to add gravity.
Please could someone tell me how to use gravity on the car and where to put it e.g in an action or function or what.
Thx


whens a door not a door? ..... When its ajar! haha so funny...
Re: Help Im a Noob at Game Physics! [Re: Guitar_Mace] #56648
10/01/05 07:17
10/01/05 07:17
Joined: Nov 2004
Posts: 113
canada EH!?
zammmm Offline
Member
zammmm  Offline
Member

Joined: Nov 2004
Posts: 113
canada EH!?
You can add gravity pretty much into any functon as long as it gets executed, but a good place to place it is your main function. From the manual Code:
ph_setgravity ( vecgravity );

and for the vector you want to have a downward force applied along the z axis, and in A6, -386 I believe is equal to earth gravity.
Code:
ph_setgravity (vector (0,0,-386));


Once you got your gravity, then you need to create your vehicle body either through WED using an action, or using ent_create. Then you apply your forces friction, mass, damping, etc. to it. Check out the manual and look around here for examples, and BTW, if your new to A6, this probably isn't the best place to start. You might want to check out the templates, I think there is a template now for vehicle physics, but Im not sure, I never used them.

PS: You need the Pro version of A6 to build a vehicle using physics...

Last edited by zammmm; 10/01/05 07:19.
Re: Help Im a Noob at Game Physics! [Re: zammmm] #56649
10/01/05 20:21
10/01/05 20:21
Joined: Sep 2005
Posts: 6
Guitar_Mace Offline OP
Newbie
Guitar_Mace  Offline OP
Newbie

Joined: Sep 2005
Posts: 6
thx for the help.
Im sure I will post again lol.


whens a door not a door? ..... When its ajar! haha so funny...
Re: Help Im a Noob at Game Physics! [Re: Guitar_Mace] #56650
10/01/05 20:45
10/01/05 20:45
Joined: Nov 2004
Posts: 113
canada EH!?
zammmm Offline
Member
zammmm  Offline
Member

Joined: Nov 2004
Posts: 113
canada EH!?
No problem, anytime.


-- Send me a shout at zammmm@gmail.com, also got MSN messenger, Xbox Live, "random FIRE", Xfire, "zammmm" and Steam, "zammmm". --------------------
Re: Help Im a Noob at Game Physics! [Re: zammmm] #56651
10/02/05 10:19
10/02/05 10:19
Joined: Sep 2005
Posts: 6
Guitar_Mace Offline OP
Newbie
Guitar_Mace  Offline OP
Newbie

Joined: Sep 2005
Posts: 6
im ExpertMace on Xbox Live, I only play halo 2 really


whens a door not a door? ..... When its ajar! haha so funny...
Re: Help Im a Noob at Game Physics! [Re: Guitar_Mace] #56652
10/02/05 19:30
10/02/05 19:30
Joined: Nov 2004
Posts: 113
canada EH!?
zammmm Offline
Member
zammmm  Offline
Member

Joined: Nov 2004
Posts: 113
canada EH!?
Ya ok, I got Halo 2, I use to play it a lot untill rainbowsix 4 came out and Far Cry Intincts. Im mostly playing Far Cry instincts offline right now but maybe if I find my Halo 2, I'll pop it in and give you a go.

EDIT: ExpertMace you say? I think I played you a few times on matchmaker...

Last edited by zammmm; 10/02/05 19:32.

-- Send me a shout at zammmm@gmail.com, also got MSN messenger, Xbox Live, "random FIRE", Xfire, "zammmm" and Steam, "zammmm". --------------------

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