I have been trying to come up with best settings for a Amphibious tank, I dont wish it to dive just sail across water at reasonable speed with tracks covered by water, with some drag (water resistance) if acelleration is stopped to assualt beaches. The code above isnt bad as drivers view is above water and tank rises as it increases speed but it gets to fast, if I try to increase drag it starts to porpoise and flip on turning as front digs in. At moment they are speed boat tanks If i raise floaters drag has more effect but tank is to low just turrent is exposed, its like going around in circles change one thing to fix say speed it wrecks something else like hieght out of water, I am sure Im missing something just cant work out what
The differential should work to limit speed with but you can try the ObjectTemplate.setNoPropellerEffectAtSpeed to, cant remember for sure if it worked on water engines but if it doesnt just put the rocket engine a little higher (over water) and make ir a plane engine instead.
If he uses a plane engine, it will propel the tank even on land.
Besides, my values of ~0.3 are only meant for simulating the Schwimmwagen's pathetic water speed. Bumping either torque or differential to a reasonable value should give the tank a respectable top speed.
Thankyou both for replies, I played with it and ObjectTemplate.setNoPropellerEffectAtSpeed worked perfectly, when I checked all the ships had it 120 to 150 setting, I needed about 10 to stop them accellerating
Only other annoying thing is when they spawn or if a player exits tank they instantly rise up to be sitting on water instead of hull depth like when being used
Old Man River wrote:Only other annoying thing is when they spawn or if a player exits tank they instantly rise up to be sitting on water instead of hull depth like when being used
From what I know, that is normal for players. The player doesn't use floaters, so they are instantly "teleported" to the top of the water and "float" there. You can make players to where they can't be affected by water, but then the player will just walk on the ground underneath the water. I have never tried adding floaters to players, so I don't know what reaction the game would have.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
Sorry bad wording, its the tanks that pop up to sit on surface when not in use, instead of staying at hull depth ie you are sailing along with tank at hull depth half submerged exit vehicle and it pops up to be sliding along with tracks sitting on water. When it spawns it is sitting on water also even when you get in it but soon as you hit a key to move it drops to correct depth, get out and it pops back up while no one is in it