#look rotation

1 messages · Page 1 of 1 (latest)

cloud bloom
#

.

modern bane
#

ok, ty

cloud bloom
#

i'm moving the mouse up and down

modern bane
#

yeah so it's moving according the world axis there right?

cloud bloom
modern bane
#

that's moving the mouse up and down?

cloud bloom
#

yeah

modern bane
#

thats perfect

cloud bloom
#

that sounds like what you're looking for

#

so yeah, just slip a Quaternion.AngleAxis(zRot, Vector3.Forward) in the middle

#

q1*q2*q3 applies q1, then q2, then a3

modern bane
#

so, should I change the other ones to world axis?

#

like I should have x and y rotations be on the standard world axis?

cloud bloom
#

they should all be using world axes, yes

#

there is probably a way to do this correctly with local axes

#

but i'd have to think about it a bit

modern bane
#

this look good sir?

#

Oh nice, it works, thanks so much for your help lad

cloud bloom
#

np! i've had to figure this out through trial and error a few times :p

modern bane
#

yeah, I was going insane yesterday trying to make it woork

modern bane
#

hey chemical, the approach you gave me works well for the y rotation, but using Vector3.forward as the z Rotation axis doesn't really work.