Local Axis Problems

Software: Away3D 4.x

Gio, Newbie
Posted: 28 June 2012 12:30 PM   Total Posts: 5

Hello.
I’m trying to manipulate camera using TweenMax and I think I found a bug. There are two 0 degrees in local axis.
When I rotate the camera using the yaw function or just by changing the rotationY property degrees change in this fashion: 0…..90 and after reaching 90 it starts to decrease and I get 0…90…0. Shouldn’t there be 180 degrees? How can I find on which 0 the camera is standing on? Please help.

this is what I get when rotating camera in the same direction:

rotationY: -82.64016631527677
rotationY
: -84.1602044244956
rotationY
: -85.68026302428194
rotationY
: -87.20032845425744
rotationY
: -88.72037339366545
rotationY
: -89.76096637409523
rotationY
: -88.24096924601142
rotationY
: -86.72099260849512
rotationY
: -85.201022801168
rotationY
: -83.68105299384086
rotationY
: -82.16108318651375 
   

Richard Olsson, Administrator
Posted: 29 June 2012 08:38 AM   Total Posts: 1192   [ # 1 ]

This sounds extremely odd. Are you just changing rotationY? Have you tried both with and without TweenMax (e.g. just increasing the rotationY property each frame)? What is the visual output? I mean, does your camera rotate the way you expect it to visually, and it’s just the traced out value that is wrong?

   

Gio, Newbie
Posted: 29 June 2012 09:57 AM   Total Posts: 5   [ # 2 ]

Thanks for the reply. Yeah I’ve tried without TweenMax and it’s the same. visually everything is right. I’ll take a little screencast when I get to work to show you what is exactly happening. I’m changing rotationY using the yaw method of the camera, which I think is just rotating it and then trace out rotationY.

   

Gio, Newbie
Posted: 29 June 2012 11:05 AM   Total Posts: 5   [ # 3 ]

So I found out that when rotating using the rotationY property it works somewhat right, but when using the yaw() method that bug occures. Here’s a screencast as promised: http://www.youtube.com/watch?v=F6BLAPvO36A&feature=youtu.be

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X