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
3 registered members (NewbieZorro, TipmyPip, AndrewAMD), 14,749 guests, and 7 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
tank #245643
01/11/09 00:12
01/11/09 00:12
Joined: Oct 2008
Posts: 67
pewpew Offline OP
Junior Member
pewpew  Offline OP
Junior Member

Joined: Oct 2008
Posts: 67
Hey
I just have a few questions regarding the physics system in a7.


After a few weeks i finally figured out how to apply physics to my 'tank' in the game i am currently working on. But the turret is separate to the tank itself. And i am not sure how to join the 2 objects together. Especially considering i am using the mouse to rotate the turret (3rd person).

Thus to make it easier I'm thinking of switching to c_move to control the vehicles (as it seems to be easier to manipulate object positions using custom physics). The question i have is, if my tank is driving up a slight slope, how do i pan/tilt the body to make it look asif it is really driving up the slope?

(as you can see in the following pic, the the turret's x y pos is bound to the tank, but the pan and tilt don't seem to match up)



HURRR DERP DERP DEERRPP HURR
Re: tank [Re: pewpew] #245762
01/11/09 19:08
01/11/09 19:08
Joined: Oct 2008
Posts: 112
N
Ness Offline
Member
Ness  Offline
Member
N

Joined: Oct 2008
Posts: 112
You mean driving up a montain with correct pan tilt angle?
Hm..i gt an idea:
Maybe you have to split up the vehicle into smaller parts and atach them to ONE vehicle! Every small part should have its own physik action and the panelcorrection code! Maybe this could help you wink

Re: tank [Re: Ness] #245764
01/11/09 19:10
01/11/09 19:10
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Make the tank plus turret one entity, add a bone (90° up where the rotation center of the turret is), apply the turret vertices to it and use ent_bonerotate to turn the turret.
http://www.conitec.net/beta/aent_bonerotate.htm

Re: tank [Re: Xarthor] #245796
01/12/09 00:02
01/12/09 00:02
Joined: Oct 2008
Posts: 67
pewpew Offline OP
Junior Member
pewpew  Offline OP
Junior Member

Joined: Oct 2008
Posts: 67
awesome thanks xarthor laugh

EDIT:
i actually have the turret and the tank base in 2 separate MDL files. do you think it would be easier to go into MED and join the models using bones? just wondering if it would work the same way.

Last edited by pewpew; 01/12/09 03:27.

HURRR DERP DERP DEERRPP HURR

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