Static methods
staticcheck(world:World, ?a:BodyOrBodies, ?b:BodyOrBodies, ?options:Null<ListenerOptions>):Void
staticlinecast(line:Line, test:BodyOrBodies, ?world:World, update_world_quadtree:Bool = true):Null<Intersection>
Casts a Line, returning the Intersection with the closest Body.
Parameters:
line | Line to Cast. |
---|---|
test | The Body or Array of Bodies to Cast the Line at. |
Returns:
Null
staticlinecast_all(line:Line, test:BodyOrBodies, ?world:World, update_world_quadtree:Bool = true):Array<Intersection>
Casts a Line, returning all Intersections.
Parameters:
line | Line to Cast. |
---|---|
test | The Body or Array of Bodies to Cast the Line at. |
Returns:
Array
staticinlinelinecast_floats(x:Float, y:Float, dx:Float, dy:Float, test:BodyOrBodies, ?world:World, update_world_quadtree:Bool = true):Null<Intersection>
Casts a Line Created from the supplied floats, returning the Intersection with the closest Body.
Parameters:
x | The X position to start the cast. |
---|---|
y | The Y position to start the cast. |
dx | The X position to end the cast. |
dy | The Y position to end the cast. |
test | The Body or Array of Bodies to Cast the Line at. |
Returns:
Null
staticinlinelinecast_vector(start:Vector2, angle:Float, length:Float, test:BodyOrBodies, ?world:World, update_world_quadtree:Bool = true):Null<Intersection>
Casts a Line Created from the supplied vector, angle, and length returning the Intersection with the closest Body.
Parameters:
start | The position to start the cast. |
---|---|
angle | The anglet of the casted Line. |
length | The lengh of the casted Line. |
test | The Body or Array of Bodies to Cast the Line at. |
Returns:
Null
staticinlinelinecast_vectors(start:Vector2, end:Vector2, test:BodyOrBodies, ?world:World, update_world_quadtree:Bool = true):Null<Intersection>
Casts a Line Created from the supplied vectors, returning the Intersection with the closest Body.
Parameters:
start | The position to start the cast. |
---|---|
end | The position to end the cast. |
test | The Body or Array of Bodies to Cast the Line at. |
Returns:
Null