jhylands

Untitled

Jul 10th, 2013
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. //CAMERA MOVEMENT
  2. if(keyboard.pressed("up")){
  3. Crotation+=0.01;
  4. }else if(keyboard.pressed("down")){
  5. Crotation-=0.01;
  6. }
  7. camera.position.y=50*Math.sin(Crotation);
  8. camera.position.z=50*Math.cos(Crotation);
Advertisement
Add Comment
Please, Sign In to add comment