RayCastCallback class abstract

Callback class for ray casts. See World.raycast.

Constructors

RayCastCallback()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reportFixture(Fixture fixture, Vector2 point, Vector2 normal, double fraction) double
Called for each fixture found in the query. You control how the ray cast proceeds by returning a float: return -1: ignore this fixture and continue return 0: terminate the ray cast return fraction: clip the ray to this point return 1: don't clip the ray and continue fixture is the fixture hit by the ray. point is the point of initial intersection. normal is the normal vector at the point of intersection.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited