Shape
Abstract class presenting a geometric shape.
Constructors
Types
Link copied to clipboard
class IntersectionReturnElement(minPx: Double, minPy: Double, intersectionFound: Boolean, closestBody: TranslatableBody?, maxDistance: Double)
Content copied to clipboard
Functions
Link copied to clipboard
Generates an AABB for the shape.
Link copied to clipboard
Link copied to clipboard
abstract fun rayIntersect(startPoint: Vec2, endPoint: Vec2, maxDistance: Double, rayLength: Double): Shape.IntersectionReturnElement
Content copied to clipboard
Checks if a ray intersects with the shape.