net.java.dev.joode.collision.collider
Class RayRectangleCollider
java.lang.Object
net.java.dev.joode.collision.collider.RayRectangleCollider
- All Implemented Interfaces:
- Collider
public class RayRectangleCollider
- extends java.lang.Object
- implements Collider
NOT A PROPER COLLIDER!!! todo
At the moment only works with 2D rays (no x or y component, and used for picking 2D scenes)
- Author:
- Tom Larkworthy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final RayRectangleCollider INSTANCE
ray2D
public static final ParametricSegment2D ray2D
e
public static final ParametricSegment2D[] e
pts
public static final Vector2[] pts
intersections
public static final Vector2[] intersections
collide
public int collide(Geom o1,
Geom o2,
int flags,
ContactGeom[] contact,
int contactIndex,
int skip)
- Specified by:
collide in interface Collider
collideRayRectangle
public int collideRayRectangle(Ray ray,
Rectangle rect,
ContactGeom[] contacts,
int contacIndex)