Package eas.simulation.spatial.sim2D.physicalSimulation.physicsEngine.net.phys2d.raw.shapes

Examples of eas.simulation.spatial.sim2D.physicalSimulation.physicsEngine.net.phys2d.raw.shapes.Shape


   * @throws ColliderUnavailableException
   *         This exception will be thrown if no suitable collider can be found.
   */
  public Collider createCollider(PhysicsAgent2D<?> bodyA, PhysicsAgent2D<?> bodyB)
  throws ColliderUnavailableException {
    Shape shapeA = bodyA.getBodyShape();
    Shape shapeB = bodyB.getBodyShape();
   
    if ( shapeA instanceof Circle ) {
      return createColliderFor((Circle) shapeA, shapeB);
    } else if ( shapeA instanceof Box ) {
      return createColliderFor((Box) shapeA, shapeB);
View Full Code Here

TOP

Related Classes of eas.simulation.spatial.sim2D.physicalSimulation.physicsEngine.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.