Package engine.geometry

Examples of engine.geometry.Rectangle.toPolygon()


        Physics.move(((LevelScene) getScene()).getBlocks(), polygon, velocity);
    }

    public final boolean onGround() {
        Rectangle check = new Rectangle(polygon.getMinX(), polygon.getMaxY(), polygon.getMaxX() - polygon.getMinX(), 1);
        return Physics.intersects(((LevelScene) getScene()).getBlocks(), check.toPolygon());
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.