Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private function updateNavigation():void
- {
- var rotateX_speed:Number = 0.5;
- var rotateY_speed:Number = 0.5;
- if( lastX == -1 && lastY == -1 )
- {
- lastX = mouseX;
- lastY = mouseY;
- }
- var changeX:Number = lastX - mouseX;
- var changeY:Number = lastY - mouseY;
- lastX = mouseX;
- lastY = mouseY;
- if( navigating )
- {
- rotateX -= changeY * rotateX_speed;
- rotateY += changeX * rotateY_speed;
- }
- }
Add Comment
Please, Sign In to add comment