jdf / peasycam

Dead-simple mouse-driven camera for Processing
http://MrFeinberg.com/peasycam/
Apache License 2.0
116 stars 35 forks source link

Additional scaling features #4

Closed eljeffeg closed 13 years ago

eljeffeg commented 13 years ago

This change adds: camera.setZoomScale(double scale); // 1.0 by default camera.setRotationScale(double scale); // 1.0 by default camera.setPanScale(double scale); // 1.0 by default double getZoomScale(); double getRotationScale(); double getPanScale();

camera.isMoving(); // returns true or false double getVelocity();

camera.lookThrough(double x, double y, double z); camera.lookThrough(double x, double y, double z, long animationTimeInMillis); camera.lookThrough(double x, double y, double z, double distance); camera.lookThrough(double x, double y, double z, double distance, long animationTimeInMillis);

camera.setRotations(double pitch, double yaw, double roll, long animationTimeInMillis);

eljeffeg commented 13 years ago

Added another feature camera.isMoving(); // returns true or false

I've already used this a couple times in my sketch.