I'm trying to add moving turrets onto a ship I've modeled. I followed the swgbex tutorial, and I've got it so that the turret only rotates on the Y axis. My question is: how do you set how far it can rotate? Is that something you do in the code? And if so, which code strings deal with how far it can rotate along an axis?
At this point it looks like I'll have to just get it right through trial and error. :uhm:
A moving turret should be a separate mesh. Don't forget about correct pivot point or your turret will get crazy. Everything else can be defined via XMLs. As far as I know EaW supports only one turret per vehicle, fortunately FoC changes that. Example turret's code:
360 <-- how far your turret can rotate (Z axis) 40 <-- how far it can elevate (Y axis) Turret_00 <-- turret mesh's name MuzzleA_00 6.0 2
I hope it will help you a bit :)
So the rotatable turret needs to be a separate model, which you attach to the main model like a breakoff hardpoint? And that code is from the hardpoints XML document, I take it?
Codeuser cleared it up for me ^_^ Thanks for the info. The turrets should work now...
Are you releasing this to the public because it sounds good.
Probably not, as it isn't a cannonical ship, and would be exclusive to only my faction...
Fair a nuf still good though:)