anylogic

How do I rotate a 3d Object around X axis


I need to have a train cart go down a track and stop at a station, then it needs to rotate upside down around the X axis, stop then rotate back.

I've tried using, setRotation functions, but they don't work and keep saying "cannot make a static referance to the non static method.

how should I set up this model to make the rotation occur smoothly

So I tried using the setRotation functions, tried my3Dobject.setRotation()

tried using state charts to do it, could only get it to continuously spin, tried seize and the rotate.


Solution

  • You need to add the animation element to a Group. You can then rotate that group around the axis you need, including the x-axis.

    (There is no other way)