149150151152153154155156
slider.setValue(0); World.cam.setLinVel(v); } public void propertyChange(PropertyChangeEvent e) { Point2D p = (Point2D)e.getNewValue(); World.cam.setVel(p.x/10f, p.y/10f); }
5354555657585960616263646566
public Joystick() { this(50); } public void build(){ j = new Point2D(); c = new Point2D(); p = new Point2D(); lp = new Point2D(); j.x=r; j.y=r; c.x=r;