Raycaster class
Raycaster for testing ray-mesh intersections in the scene.
Constructors
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
-
cast(
Ray ray, Node root, {double maxDistance = 1000}) → List< RaycastHit> - Casts a ray against all visible nodes in the tree. Returns hits sorted by distance (nearest first).
-
castNearest(
Ray ray, Node root, {double maxDistance = 1000}) → RaycastHit? - Returns the nearest hit, or null.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited