Hi,
I´m working with a relatively simple gear switch for a bus.
I have a very odd problem with the animation of the switch. I hope someone could tell me, how to fix it.
This is the code in the model.cfg of this bus:
[mesh]
HKL\scania_vv_pohja.o3d
[viewpoint]
0
[matl]
scania_vv_pohja.bmp
0
[mesh]
HKL\scania_vv.o3d
[viewpoint]
0
[matl]
kjarru.bmp
0
[mouseevent]
automatic_D
[newanim]
origin_trans
-0.543
5.110
1.656
origin_rot_x
22
origin_rot_y
0
origin_rot_z
-30
anim_rot
cockpit_gang3
-52.00
delay
10
maxspeed
36
[mouseevent]
automatic_R
[newanim]
origin_trans
-0.543
5.110
1.656
origin_rot_x
22
origin_rot_y
0
origin_rot_z
-30
anim_rot
cockpit_gangR
90
delay
10
maxspeed
36
TheHKL\scania_vv_pohja.o3d is the bottom object for the switch and the HKL\scania_vv.o3d is the switch itself.
There are two animations, because switching to D means turning the knob about 52 degrees right (position E) and switching to R means
turning the knob 90 degrees left (posítion T).
It seems to me that instead of using the local axis (as far as i understand, the origin_rot_x, origin_rot_y and origin_rot_z determine the axis of the object), Omsi uses the global Z axis.
In this case the object's rotation in Blender is x=22, y=0, z=-33.
To me it seems that Omsi rotates the switch using the global z axis instead of the local z axis:
I have tested in Blender that rotating using global Z works fine.
Regards
Welbus