Game Development Community

Spring sequences in Wheeled vehicles, not working

by TerroX · in Torque Game Engine · 04/02/2002 (7:31 am) · 4 replies

I just want to make sure that Spring sequences do not work, or am I doing it wrong? - tried blend, non-blend and lots of other stuff.
I can do sequences in T2, DSQs, player model anims and such - but not vehicle springs.

Is there are a working test with animated Shocks/Springs? (not the wheels going up and down, I want the Spring sequences working for coolness).

If not I can male a test vehicle which *should* work for testing.

#1
04/08/2002 (9:09 pm)
Hey wow, it was me doing it wrong.

This is how to do it,

Link the hub node to the dummies you have animated in the sequence and it will work. Otherwise the wheels fall off. My sequences where just normal Transform sequences, no blend.
I have 6 wheels and 6 spring animations with 6 sequences and all hubs linked to their respective dummies and all that. But the Spring4 and Spring5 do not animate. The wheels still bounce fine, but the axles do not move - seems the engine is ignoring spring sequences after Spring3 or not linking them to the wheels etc.

Spring0 animates Hub0
Spring1 animates Hub1
Spring2 animates Hub2
Spring3 animates Hub3
Spring4 does not move Hub4
Spring5 does not move Hub5

I will edit this message if I have just messed up the sequence settings or made an error somehow.
#2
04/08/2002 (9:17 pm)
As far as I remember, it's just a loop that goes 0-MaxWheels, nothing special about the first four. (MaxWheels is 8)
#3
04/08/2002 (10:20 pm)
I just did a test, renamed and swapped Spring5 with spring3 and it still cuts off Spring4 and Spring5 (which is the last two on my vehicle after the first 4)

So that kinda means it aint me.. unless it is my car.cs
But I got everything fine, just Spring sequences after 3 are not being used.
#4
04/09/2002 (7:45 am)
Took another look at the code and don't see anything unusual about it. If you zip up and send me the .dts, .jpg and .cs files for your car, I can take a quick look in the debugger.