Off axis rotation

Off axis rotation

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
zalpha
Posts: 23
Joined: 19 Mar 2013, 18:39

Off axis rotation

Post by zalpha »

Is it possible to execute a Spin off one of the three normal axes?

I have a planet that I want to rotate, but the poles are not quite on access, so it looks very strange rotating.

Or, is there a way to shift the local axes?
User avatar
Razorblade
Posts: 47
Joined: 11 Jul 2009, 14:51

Re: Off axis rotation

Post by Razorblade »

easiest way is to spin on y-axis and turn the object to the axis you want in the degrees
zalpha
Posts: 23
Joined: 19 Mar 2013, 18:39

Re: Off axis rotation

Post by zalpha »

Rather than try to do three dimensional vector trig, I'm rebuilding the model so the planet has a control point and is rotated properly to begin with.
zalpha
Posts: 23
Joined: 19 Mar 2013, 18:39

Re: Off axis rotation

Post by zalpha »

How I fixed it:

In the planet model, I have an empty piece named "control". The planet mesh is a child of this piece, and the four buildpoints for the orbitals are also children.

I rotated the planet model to its correct orientation which did not effect the rest of the unit.

In this way, I can spin the planet without spinning the buildpoints.

If I have an extra moment, I'll see if I can then turn the planet mesh slightly while keeping the spin oriented properly.
Post Reply

Return to “Game Development”