RaycastResult class
Storage for Ray casting data
- Implementers
Constructors
Properties
- body ↔ Body?
-
body
getter/setter pair
- distance ↔ double
-
Distance to the hit. Will be set to -1 if there was no hit
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasHit ↔ bool
-
hasHit
getter/setter pair
- hitFaceIndex ↔ int
-
The index of the hit triangle, if the hit shape was a trimesh
getter/setter pair
- hitNormalWorld ↔ Vec3
-
hitNormalWorld
getter/setter pair
- hitPointWorld ↔ Vec3
-
hitPointWorld
getter/setter pair
- rayFromWorld ↔ Vec3
-
rayFromWorld
getter/setter pair
- rayToWorld ↔ Vec3
-
rayToWorld
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shape ↔ Shape?
-
shape
getter/setter pair
- shouldStop ↔ bool
-
If the ray should stop traversing the bodies
getter/setter pair
Methods
-
abort(
) → void - abort
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → void - Reset all result data.
-
set(
Vec3 rayFromWorld, Vec3 rayToWorld, Vec3 hitNormalWorld, Vec3 hitPointWorld, Shape shape, Body body, double distance) → void - Set result data.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited