OFPEC Forum

Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: remcen on 18 Apr 2005, 01:21:52

Title: tank chain movement speed
Post by: remcen on 18 Apr 2005, 01:21:52
the chain of my tank moves too slow given the speed of the tank and the rotation speed of the wheels.
is there any variable in the config to define it or is it somehow hardcoded?
i couldn't find one when i read through the commented configs... ???
or is it the way it is simply because it's a small tank?
Title: Re:tank chain movement speed
Post by: oyman on 18 Apr 2005, 01:57:19
maybe mess around on how big the texture is mapped to the tread

 ???
Title: Re:tank chain movement speed
Post by: remcen on 19 Apr 2005, 00:57:21
well,  i can't imagine why that shall help. that has no influence on the animation speed - it just makes my texture smaller, right??

btw. i double-checked the model and the config, the selection are all right, just the same as sebastian müller's mt-lb which i used as a reference model.
i also added a new 'wheels' subclass to the cfgvehicles class of the tank cos it has not 8 wheel - like in the standard subclass which the vehicle inherits - but 5. but it makes no difference.
Title: Re:tank chain movement speed
Post by: bennyboy on 16 May 2005, 04:30:13
The speed that the track appears to rotate is directly related to the proportions of the texture that you use.

So if you have a texture which is 256 by 64, it will move about 1/4 the speed it needs to.  You have to have a 1:1 width to height ratio in order to achieve a correct rotation speed.  The best way to do this is to have a few track links tiled on a 1:1 ratio texture.

Unfortunately this also means that you'll have to go back and retexture your tracks entirely.
Title: Re:tank chain movement speed
Post by: remcen on 16 May 2005, 14:55:47
thanks for the hint bennyboy,
works perfectly.
topic solved  :D