A direction in three dimensions is not enough to describe a rotation. Think of a pencil pointing somewhere: You can still rotate it around the axis and it still points to the same place.
Perhaps you are trying to build a lookAt matrix. That looks a lot like your code.
Show differencesHistory of post edits
#1alvaro
Posted 17 March 2012 - 12:17 PM
A direction in three dimensions is not enough to describe a rotation. Think of a pencil pointing somewhere: You can still rotate it around the axis and it still points to the same place.
Perhaps you are trying to build a lookAt matrix. That looks a lot like your code.
Perhaps you are trying to build a lookAt matrix. That looks a lot like your code.