Package net.phys2d.raw.shapes

Examples of net.phys2d.raw.shapes.Shape


      return BasicEntity.NULL;
    }
  }
 
  public org.newdawn.slick.geom.Shape shapeForBody(Body body) {
    Shape shape = body.getShape();
    if(shape instanceof Box) {
      Box box  = (Box) shape;
      ROVector2f[] points = box.getPoints(new Vector2f(0.0f, 0.0f), 0.0f);
      Polygon poly = new Polygon();
      for(ROVector2f point: points) {
View Full Code Here


public class ColliderFactory
{
  public Collider createCollider(Body paramBody1, Body paramBody2)
    throws ColliderUnavailableException
  {
    Shape localShape1 = paramBody1.getShape();
    Shape localShape2 = paramBody2.getShape();
    if ((localShape1 instanceof Circle))
      return createColliderFor((Circle)localShape1, localShape2);
    if ((localShape1 instanceof Box))
      return createColliderFor((Box)localShape1, localShape2);
    if ((localShape1 instanceof Line))
View Full Code Here

TOP

Related Classes of net.phys2d.raw.shapes.Shape

Copyright © 2018 www.massapicom. 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.