Class CollisionShape

  • Direct Known Subclasses:
    Box, Sphere

    public abstract class CollisionShape
    extends java.lang.Object
    Base class for all types of shapes that collision checks can be performed against.
    • Method Detail

      • onChanged

        protected void onChanged()
        Must be called by subclasses when the shape changes to inform listeners of the change.
      • rayIntersection

        protected abstract boolean rayIntersection​(Ray ray,
                                                   RayHit result)
      • shapeIntersection

        protected abstract boolean shapeIntersection​(CollisionShape shape)
      • sphereIntersection

        protected abstract boolean sphereIntersection​(Sphere sphere)
      • boxIntersection

        protected abstract boolean boxIntersection​(Box box)