Notifications
Clear all
[Closed] Silly rotation based question?
Oct 20, 2010 2:02 am
on bankingSpn changed theState do –spinner that goes from 0 to 180
(
$Cylinder01.rotation.y_rotation = bankingSpn.value
)
It’s fine until it gets to 90 and then goes insane. So when it’s 90.1 that y rotation is 90.101, 90.2 is 89.799 and it just seems all over the place. It’s alright on whole numbers, just not the fractions. Can anyone explain what is going on?
3 Replies
Oct 20, 2010 2:02 am
quat / euler | There is a conversion happening… (quaternion has its limits)
$Cylinder01.rotation.y_rotation
-54.9246
$Cylinder01.rotation.controller[2].value
-125.075
(inverse $Cylinder01.rotation) as eulerangles
(eulerAngles -60.2383 -54.9246 180)
Oct 20, 2010 2:02 am
That’s amazingly useful, so now I’m using
$Cylinder01.rotation.controller[2].value = bankingSpn.value
And it works perfectly. Also had a look into this Gimbal Lock stuff. x.X
Thanks again!