Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import peasy.*;
- PeasyCam cam;
- void setup2() {
- cam = new PeasyCam(this, 100);
- cam.setMinimumDistance(50);
- cam.setMaximumDistance(500);
- cam.lookAt(width/2,height/2 , 0, 100);
- }
- void lookat () {
- if (mousePressed) {
- if (mouseButton == RIGHT);
- cam.lookAt(posa.x,posa.y,0, 100);
- } else if (mouseButton == LEFT) {
- cam.lookAt(pos.x, pos.y, 0, 100);
- }
- }
Add Comment
Please, Sign In to add comment