Hey
(My game is in 2.5D)
When I shoot down an enemy air unit I want it to crash in a ark so it can potentially hit other enemys while it is falling to the ground.
Right now I tried to accomplish this by spawning a damaged prefab of the original. There is only 1 fsm attached to the object with 1 state.
“Translate” (so it moves forward).
“Smooth look at direction” (so the mesh gradually goes into the nose dive and I have an ark shape movement.)
The object does what it is supposed to do, the object rotates to the ground in an ark shape.
However. Because I work in 2.5 D the ship must only rotate in the X axes. But in my case the ship incorporates a rotation in the X axes. Because of this the object drifts to the side and misses all my other object in the scene.
So my question how can I limit the rotation in the X axis, or is there a better way than “translate” & “Smooth look at direction” to let my prefab nose dive?