Skip to main content
gamedev.net
🔒 Locked

object space

Started by induster Feb 25, 2008 at 11:33 AM 0 replies 700+ views
Original Post
induster
induster
I'm trying to use a rotate matrix to spin a square mesh around it's axis. The problem is that it's spinning around the world space axis when using matRotateZ. So instead of spinning, it spins in giant circles around the world space origin.
jpetrie
jpetrie
Without more information we can't help you much. There are two very common causes for this, the first being that the cube is actually defined off-center in object space, and the second being that your translation is being applied before the rotation.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.