How to make a rotating cannon on a tank?
Moderator: Moderators
-
- 2nd Lieutenant
- Posts: 396
- Joined: Tue Jan 16, 2007 4:22 pm
- Projects :: Space to Ground [reworking]
- xbox live or psn: No gamertag set
- Location: The left side of the moon
- Contact:
How to make a rotating cannon on a tank?
Hello everybody.
I have forgotten how i make a rotating cannon on a tank .
Can someone of you help me ?
I hope all of you have understood my question.
So pls help me.
Thank you in advance.
I have forgotten how i make a rotating cannon on a tank .
Can someone of you help me ?
I hope all of you have understood my question.
So pls help me.
Thank you in advance.
-
- Gametoast Staff
- Posts: 2244
- Joined: Sat May 13, 2006 12:34 am
- Projects :: Not sure keep changing my mind.
- xbox live or psn: No gamertag set
- Location: Origin name GT_FragMe
- Contact:
Re: How to make a rotating cannon on a tank?
Have a look at my post in this topic see if it helps (assuming you mean a manned turret)
http://www.gametoast.com/forums/viewtop ... 36&t=14335
http://www.gametoast.com/forums/viewtop ... 36&t=14335
-
- 2nd Lieutenant
- Posts: 396
- Joined: Tue Jan 16, 2007 4:22 pm
- Projects :: Space to Ground [reworking]
- xbox live or psn: No gamertag set
- Location: The left side of the moon
- Contact:
Re: How to make a rotating cannon on a tank?
No manned turret
Ok let's have a look on my model.
And now you see what i mean.
I hope you can help me now.
EDIT
Can really nobody help me ?
Ok let's have a look on my model.
And now you see what i mean.
I hope you can help me now.
EDIT
Can really nobody help me ?
-
- Jedi
- Posts: 1003
- Joined: Sun Mar 12, 2006 7:16 pm
- Projects :: Space - Boarding Action
- xbox live or psn: No gamertag set
Re: How to make a rotating cannon on a tank?
That is a turret on that tank, and they're typically manned. So, go look a that thread, since it has info relevant to the question.
-
- 2008 Best Games Related Avatar
- Posts: 1706
- Joined: Thu Jun 07, 2007 3:34 pm
- Projects :: Terra Strife - discontinued
- xbox live or psn: No gamertag set
- Contact:
Re: How to make a rotating cannon on a tank?
Dunno if that's possible on this game engine, considering that usually when you turn the mouse, the whole vehicle turns in this engine.
The easiest way is just to make the main cannon controlled by a gunner, and primary position of the vehicle is a driver.
The easiest way is just to make the main cannon controlled by a gunner, and primary position of the vehicle is a driver.
-
- 2nd Lieutenant
- Posts: 396
- Joined: Tue Jan 16, 2007 4:22 pm
- Projects :: Space to Ground [reworking]
- xbox live or psn: No gamertag set
- Location: The left side of the moon
- Contact:
Re: How to make a rotating cannon on a tank?
Yes, but first must I know how i get the cannon ready.
All the other thread's don't help me.
I think it has to do with nodes, because i found in the odf of the cis tank this:
( This is the Main gun of the AAT)
FLYERSECTION = "TURRET1"
VehiclePosition = "common.vehiclepositions.gunner"
//FirstPerson = "cis\cissccam;cis_1st_cockpit_securitycam"
TurretNodeName = "Gun_Body" <-- Here to exsample and...
PitchLimits = "-40.0 20.0"
YawLimits = "-180.0 180.0"
PitchTurnFactor = "0"
PCPitchRate = "15"
TurnRate = "1.8"
TurnFilter = "10"
PitchRate = "0.5"
PitchFilter = "10"
PitchDamp = "10"
BarrelNodeName = "recoil_3" <-- and here
BarrelRecoil = "0.75"
FirePointName = "hp_cannon_1"
EyePointOffset = "0.0 2.0 -1.75"
TrackCenter = "0.0 1.0 -2.0"
TrackOffset = "0.0 0.0 3.0"
TiltValue = "10"
Have this two nodes a significance for my cannon?
And how must i place it in xsi, so that it will work in sw-bf 2 ?
hmmm... I think that I am on the right way.
All the other thread's don't help me.
I think it has to do with nodes, because i found in the odf of the cis tank this:
( This is the Main gun of the AAT)
FLYERSECTION = "TURRET1"
VehiclePosition = "common.vehiclepositions.gunner"
//FirstPerson = "cis\cissccam;cis_1st_cockpit_securitycam"
TurretNodeName = "Gun_Body" <-- Here to exsample and...
PitchLimits = "-40.0 20.0"
YawLimits = "-180.0 180.0"
PitchTurnFactor = "0"
PCPitchRate = "15"
TurnRate = "1.8"
TurnFilter = "10"
PitchRate = "0.5"
PitchFilter = "10"
PitchDamp = "10"
BarrelNodeName = "recoil_3" <-- and here
BarrelRecoil = "0.75"
FirePointName = "hp_cannon_1"
EyePointOffset = "0.0 2.0 -1.75"
TrackCenter = "0.0 1.0 -2.0"
TrackOffset = "0.0 0.0 3.0"
TiltValue = "10"
Have this two nodes a significance for my cannon?
And how must i place it in xsi, so that it will work in sw-bf 2 ?
hmmm... I think that I am on the right way.
- Blade
- Captain
- Posts: 496
- Joined: Fri Apr 04, 2008 11:02 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: How to make a rotating cannon on a tank?
I don't know a whole lot about modeling, but as for it being impossible, look at the AT-ST's head. It can turn on its own. However, the body does eventually catch up with the head, so... I know that partial turns are possible (no idea how ), but I don't think a completely independent turret (controlled by the driver) is conceivable/possible.
-
- Hoth Battle Chief
- Posts: 3132
- Joined: Sun Dec 09, 2007 11:45 pm
- Projects :: No Mod project currently.
- Location: A Certain Box Canyon
Re: How to make a rotating cannon on a tank?
I woulk look into the odf of the ATT, since it has a turret on top that rotates 360.
-
- 2008 Most Original Avatar
- Posts: 3096
- Joined: Sun Aug 20, 2006 5:55 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: X-Fire: caleb1117 ಠ_ಠ
Re: How to make a rotating cannon on a tank?
I honestly have no real idea, but I theorize, that if one placed a null, at the point where the wanted the turret to turn at, and made it the child of the turret? Or maybe the other way around...
They could then define the null in the ODF
TurretNodeName = "Gun_Body" <-- Here to exsample and...
PitchLimits = "-40.0 20.0"
YawLimits = "-180.0 180.0"
And since if the null was a parent to the turret, it should control it, and ... I don't know, just a theory.
They could then define the null in the ODF
TurretNodeName = "Gun_Body" <-- Here to exsample and...
PitchLimits = "-40.0 20.0"
YawLimits = "-180.0 180.0"
And since if the null was a parent to the turret, it should control it, and ... I don't know, just a theory.
-
- Gametoast Staff
- Posts: 2244
- Joined: Sat May 13, 2006 12:34 am
- Projects :: Not sure keep changing my mind.
- xbox live or psn: No gamertag set
- Location: Origin name GT_FragMe
- Contact:
Re: How to make a rotating cannon on a tank?
That is correct, a null at the pivot point for turning the turret with the actual turret model a child of the null
So tree in XSI explorer would look something like this
The barrel_body null can also be used for recoil. Of couse since it will move all the collisions for the turret and barrel need to collison primitives and they would have to go at the same location in the tree as thier respective parts.
And as I mentioned earlier you will also have to make a .option file or the msh or the turret won't move.
So tree in XSI explorer would look something like this
Code: Select all
dummyroot
mainmodelbits
gun_body (this is the null)
turret
barrel_body (this is another null to tilt the barrel up and down goes at the start of the barrel where it meet the turret)
barrel
hp_fire (this is another null that goes at the business end of the barrel)
The barrel_body null can also be used for recoil. Of couse since it will move all the collisions for the turret and barrel need to collison primitives and they would have to go at the same location in the tree as thier respective parts.
And as I mentioned earlier you will also have to make a .option file or the msh or the turret won't move.
-
- 2nd Lieutenant
- Posts: 396
- Joined: Tue Jan 16, 2007 4:22 pm
- Projects :: Space to Ground [reworking]
- xbox live or psn: No gamertag set
- Location: The left side of the moon
- Contact:
Re: How to make a rotating cannon on a tank?
Ok thx for the help all, but now I have another problem.
The problem is that I must know how I make the control for the cannon and the tank.
The cannon must let move with the mouse and the tank with the buttons W,A,S and D
I have tried many ways to make it real, but I am failed.
So can someone help me with my problem?
At the best I post the Script of my Tank.
The problem is that I must know how I make the control for the cannon and the tank.
The cannon must let move with the mouse and the tank with the buttons W,A,S and D
I have tried many ways to make it real, but I am failed.
So can someone help me with my problem?
At the best I post the Script of my Tank.
Hidden/Spoiler:
- elfie
- Field Commander
- Posts: 931
- Joined: Fri Jan 25, 2008 8:26 pm
- xbox live or psn: no live
- Location: Coruscant, Jedi Temple
- Contact:
Re: How to make a rotating cannon on a tank?
Not to bump but are you ever going to release that tank? It is a great model and I can really use it for one of the maps I am working on!
-
- 2008 Most Technically Challenging Avatar
- Posts: 2376
- Joined: Tue Feb 12, 2008 7:46 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: NJ, USA
Re: How to make a rotating cannon on a tank?
LOL elfie! actually, id like to have it too please (and have you fixed the thing with the turret?)
- Teancum
- Jedi Admin
- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
Re: How to make a rotating cannon on a tank?
In FragMe!'s post above, did you create the turret setup like he pointed out? What did you name each of the nulls and objects?Redline wrote:Ok thx for the help all, but now I have another problem.
The problem is that I must know how I make the control for the cannon and the tank.
The cannon must let move with the mouse and the tank with the buttons W,A,S and D
I have tried many ways to make it real, but I am failed.
So can someone help me with my problem?
At the best I post the Script of my Tank.
Hidden/Spoiler:
-
- 2nd Lieutenant
- Posts: 396
- Joined: Tue Jan 16, 2007 4:22 pm
- Projects :: Space to Ground [reworking]
- xbox live or psn: No gamertag set
- Location: The left side of the moon
- Contact:
Re: How to make a rotating cannon on a tank?
Yes, but the problem is the control of sw bf 2.
How can I change the control so that I can move the turret with the mouse.
And how can I change the control of the tank, so that it can move with the buttons A:( Left), D:( right) ,W:(forward) and S:(backward)?
First: NULL: gun_body ->Object: turret
Second:NULL: gun ->Object:barrel
PS:
My first sucess was that I could move the main turret with a gunner, but not with the pilot.
I am confused.
How can I change the control so that I can move the turret with the mouse.
And how can I change the control of the tank, so that it can move with the buttons A:( Left), D:( right) ,W:(forward) and S:(backward)?
Yes and here are some names of my nulls and turrets:In FragMe!'s post above, did you create the turret setup like he pointed out? What did you name each of the nulls and objects?
First: NULL: gun_body ->Object: turret
Second:NULL: gun ->Object:barrel
PS:
My first sucess was that I could move the main turret with a gunner, but not with the pilot.
I am confused.
-
- Jedi
- Posts: 1104
- Joined: Tue Jan 30, 2007 6:04 am
- Projects :: Inactive
- Location: Germany
Re: How to make a rotating cannon on a tank?
I think this already belongs into the SWBF2 Modding Forum.