View source
class Collider
package h3d.col
extended by Bounds, Capsule, GroupCollider, HeightMap, ObjectCollider, OptimizedCollider, OrientedBounds, Polygon, PolygonBuffer, SkinCollider, Sphere, TransformCollider, TriPlane
Methods
rayIntersection(r:Ray, bestMatch:Bool):Float
Returns the distance of intersection between the ray and the collider, or negative if no collision. If bestMatch is false, only negative/positive value needs to be returned, with no additional precision.