Animation doesn't work

Das Forum befindet sich im reduzierten Betrieb. Die Addon- und Supportforen bleiben weiterhin verfügbar.
Bitte beachte, dass OMSI nicht mehr weiterentwickelt wird. Ein Teil der Entwickler widmet sich inzwischen der Entwicklung eines neuen Simulators. Weitere Informationen zum LOTUS-Simulator findest Du hier.
Ein communitybetriebenes Nachfolge-Forum wird hier verlinkt, sobald es gegründet und bereit ist.
  • 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:


    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

  • Hello,


    origin_rot is for rotating the origin of your model, and you can shift it with origin_trans. You have to add "origin_from_mesh" at the beginning of your [newanim] to use the local origin. In your case you should not change the values of origin_trans, unless your local origin is not at the right position. If your gear rotates in the wrong direction, you have to add 90 in origin_rot_x, origin_rot_y or origin_rot_z.


    It will look like :