How to make actor rotate on all axis instead of single axis.

I am trying to set an object to rotate around all axis together at one time. When using the “add local rotation” with my tik node, all I get is a single axis rotation at a given time. All video tutorials show how to rotate an actor on a single axis, but none show what Im looking for. I want it to slowly spin in all directions randomly.

rotation

Thank you for the reply! Im looking more for how something moves and rotates in outer space or a no gravity type spin. Think of how an asteroid spins slowly in place but not on a single axis as it looks strange. I dont want it to abruptly change direction either.

At the very end of your gif is almost what im looking for, where is starts getting all smooth rotating!

Basically what I have; When my cube spawns, it actives the “default spin” boolean (sequence 0). When I click on my Spin button, it will then activate my “Fast Spin” boolean (sequence 1) and cause the cube to spin faster.

The “add local rotation” only allows it to spin on one axis at a given time, when I want it to spin in all directs for both spins.

You can add on more than one axis at once… :slight_smile:

Are you able to elaborate more or show another example of this being done? I have tried multiple ways of accomplishing this but to no avail.

I’ve connected multiple “add rotation location” nodes together, it has no effect. I’ve tried using the random rotation which still only makes it rotate on one single axis. If it was simple to to add more than one axis I wouldn’t be reaching out for assistance lol.

1 Like

In your example, you doing it on two

image

1 Like

Ah, I get what you want. It’s not more than one axis ( as I said, you’ve done that ), you want to change the amount per axis during spin, but maintain the direction.

I’ll come back in a bit…

1 Like

Exactly!

Im trying to add rotation to each axis, like this but this obviously doesn’t work sadly, and it only goes to the X axis

1 Like

Actually, I think it’s just this

image

cube

1 Like

Sliiiightly better is

image

cube

1 Like

Still not quite what im getting at. looks a little better but still spinning on one main axis but angled.

This is exactly what im looking for reference:

1 Like

Any recommendations on getting a perfect rotation as above example, around all axis angles to where you can get a view of every face of the cube?

First: every object always rotates around ONE AXIS at any one time. That axis may or may not be aligned with the local coordinate system of the object (although in real world, of course, no specific “local coordinate system” exists.)

Second: Objects tend to wobble and stabilize themselves around one major rotation axis, perhaps also with precession around one minor axis. What axis this is depends on the ineria tensor of the object. Physical simulation of the object will tend to achieve this same effect. That axis will be physically based, not “artfully chosen” – in physics, you don’t get to pick an axis that doesn’t agree with the inertia tensor.

Third, if all you want is rotation around some particular axis, then pick whatever that axis is, create a timeline that rotates the object around that axis 360 degrees, and animate that timeline. This won’t be physical (because it’s a forward kinematic animation) but it will look like you want it to.

One cool trick is to add two Scene nodes before your object node in the hierarchy. The first one is rotated such that the local “X” axis points in the direction you want to rotate. The second one is identity. Then your object has a rotation that is the counter-rotation of the first rotation. Then you animate the rotation of the second Scene node, in the local X axis. Like magic, your object will seem to be spinning around the chosen axis, with a simple single-axis rotation!

1 Like