Jump to content
  • 0

How do I get an object to rotate around it's Z axis?


DarkAscension
 Share

You are about to reply to a thread that has been inactive for 3668 days.

Please take a moment to consider if this thread is worth bumping.

Question

1 answer to this question

Recommended Posts

  • 0

I don't know what method of rotation you're using, so I can only guess.

Somewhere in the code you'll be using a vector, which looks like <0.0,0.0,0.0> (it's three values, x, y and z, separated by commas)

One of these values will not be zero - this is the axis that is spinning.

You can shift the axis by moving the non-0 vector portion to the correct vector portion.

E.g. if your code says <0,1,0> then it should say <0,0,1>

If this guess-work doesn't work for you, you should update your question to paste the code you're using. Use the Add Code button as shown:-

AddCode.jpg

  • Like 1
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 3668 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...