Class representing the results of a convex cast operation.

These objects are allocated from an object pool and can be released back to that pool by calling its dispose method.

Constructor

new()

@private

Variables

@:value(null)zpp_inner:ZPP_ConvexRayResult = null

@private

read onlynormal:Vec2

The normal of the surface at collision.

read onlyposition:Vec2

The position of the collision.

read onlytoi:Float

The time of impact to the collision

read onlyshape:Shape

The shape which was collided against.

Methods

inlinedispose():Void

Release ConvexResult object to pool.

@:keeptoString():String

@private