Guest User

Untitled

a guest
Dec 12th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. import peasy.*;
  2.  
  3. PeasyCam cam;
  4.  
  5. void setup2() {
  6. cam = new PeasyCam(this, 100);
  7. cam.setMinimumDistance(50);
  8. cam.setMaximumDistance(500);
  9. cam.lookAt(width/2,height/2 , 0, 100);
  10. }
  11.  
  12. void lookat () {
  13. if (mousePressed) {
  14. if (mouseButton == RIGHT);
  15. cam.lookAt(posa.x,posa.y,0, 100);
  16. } else if (mouseButton == LEFT) {
  17. cam.lookAt(pos.x, pos.y, 0, 100);
  18. }
  19. }
Add Comment
Please, Sign In to add comment