Hi,
Tried to make a reverser, and struggled a little to get it working. After many tries at trying to get the animation sequence right in TSM I threw in the towel and decide to hack the shape file manually, several trial and error edits later I managed to get it working.
Tha last export from TSM gave an entry in the shape file thus:
anim_node DIRECTION:0:0 (
controllers ( 1
tcb_rot ( 3
tcb_key ( 0 0 0 0 1 0 0 0 0 0 )
tcb_key ( 1 -0 0.173648 0 0.984808 0 0 0 0 0 )
tcb_key ( 2 0 0.173648 0 -0.984808 0 0 0 0 0 )
)
)
)
The code that gave me a working control is like so:
anim_node DIRECTION:0:0 (
controllers ( 1
tcb_rot ( 3
tcb_key ( 0 0 0.173648 0 -0.984808 0 0 0 0 0 )
tcb_key ( 1 0 0 0 1 0 0 0 0 0 )
tcb_key ( 2 -0 0.173648 0 0.984808 0 0 0 0 0 )
)
)
)
Corresponding .eng entry:
DirControl ( -1 0 1 1 )
...and .cvf:
TriState (
Type ( DIRECTION TRI_STATE )
Position ( 424 413 42 30 )
NumFrames ( 3 3 1 )
Style ( NONE )
MouseControl ( 1 )
Orientation ( 0 )
DirIncrease ( 0 )
)
A bit of a fluke but maybe this info is useful for others.
Cheers,
John.
Edit: Had a fiddle with direction control in JTangs original cab shape.
Before:
anim_node DIRECTION:0:0 (
controllers ( 1
tcb_rot ( 3
slerp_rot ( 0 0 0 0 1 )
slerp_rot ( 1 0 .258819 0 .9659258 )
slerp_rot ( 2 0 -.258819 0 .9659258 )
)
)
)
After:
anim_node DIRECTION:0:0 (
controllers ( 1
tcb_rot ( 3
slerp_rot ( 0 0 .258819 0 -.9659258 )
slerp_rot ( 1 0 0 0 1 )
slerp_rot ( 2 0 .258819 0 .9659258 )
)
)
)
Reverser now functions correctly.