Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //CAMERA MOVEMENT
- if(keyboard.pressed("up")){
- Crotation+=0.01;
- }else if(keyboard.pressed("down")){
- Crotation-=0.01;
- }
- camera.position.y=50*Math.sin(Crotation);
- camera.position.z=50*Math.cos(Crotation);
Advertisement
Add Comment
Please, Sign In to add comment