I have some light issues with a UI element i'm working on. It's a
turntable thing where the user rotates a plane by pressing a touchscreen
and dragging. It's not hard to make a controller that adapts to the
angle from where it was pushed to where the mouse is dragged (atan2
etc), but i run into problems when the user presses the left side and
turns the table to the right, and then grabs the left side again to
continue the rotation. The table flips rather than maintain the offset,
and i can't really seem to figure out how to maintain the offset across
the sinCos flip of 180/-180. Terrible trig.
Anyone done this thing before and have example code i can look at?
Thanks
- Andreas
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com