Example usage for com.google.gwt.maeglin89273.game.mengine.physics Point delta

List of usage examples for com.google.gwt.maeglin89273.game.mengine.physics Point delta

Introduction

In this page you can find the example usage for com.google.gwt.maeglin89273.game.mengine.physics Point delta.

Prototype

public Vector delta(Point p) 

Source Link

Usage

From source file:com.google.gwt.maeglin89273.shared.test.volcanogame.ElectronicsVolcanoGame.java

@Override
public void update() {
    if (grabPoint != null) {
        Point mP = MEngine.getMousePosition();
        layer.getCamera().move(mP.delta(grabPoint), true);
        grabPoint.setPosition(mP);/*from   w  w  w .j a  v  a 2s .co m*/
    }
    layer.update();
}