Hi all, I am very new to away3d and so far I am really liking it. I am 
building a 3d carousel for a client right now but I ran into a problem that 
I was not quite sure how to handle. I was hoping one of you gurus could 
point me in the right direction. I am spinning a circular 3d carousel ( the 
usual ones you see on the web ) by clicking on a forward and backward arrow.

The way I set up the 3d environment was that I created a ObjectContainer3D 
and I added all my tiles to that in a circular shape. Then on my enterFrame 
I just rotate the ObjectContainer3D (and I counter rotate my tiles since 
they always have to face front). My camera faces de front side of the circle 
so you are at eye-level with the tiles. In other words you don't see the 
back side of the circle you only see the 5 tiles on the side closest to the 
camera.

My issue is that as I spin the carousel and let go of my forward/backward 
buttons I need the position of the carousel to "snap" into place so that the 
tile that hit closest to the center of the camera at the time I let go of 
either button, snaps to that center. I haven't been able to figure this out. 
I'm guessing I would need to know the current angle of the ObjectContainer3D 
as it relates to the position of the nearest tile and then somehow convert 
that into the amount I need to rotate (and counter-rotate for the tiles :S 
). But I haven't been able to wrap my head around it completely. Anyone know 
how I can do this that could point me in the right direction? Hope to hear 
from someone. Thanks!

Danee

Reply via email to