Raycaster class
This class is designed to assist with raycasting. Raycasting is used for mouse picking (working out what objects in the 3d space the mouse is over) amongst other things.
Constructors
Properties
- camera ↔ Camera
-
getter/setter pair
- far ↔ double
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- layers ↔ Layers
-
getter/setter pair
- near ↔ double
-
getter/setter pair
-
params
↔ Map<
String, dynamic> -
getter/setter pair
- ray ↔ Ray
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
ascSort(
Intersection a, Intersection b) → int -
intersectObject(
Object3D object, [bool recursive = false, List< Intersection> ? intersects]) → List<Intersection> -
object
— The object to check for intersection with the ray. -
intersectObject4(
Object3D object, Raycaster raycaster, List< Intersection> intersects, bool recursive) → void -
intersectObjects(
List< Object3D> objects, bool recursive, [List<Intersection> ? intersects]) → List<Intersection> -
objects
— The objects to check for intersection with the ray. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
set(
Vector3 origin, Vector3 direction) → void -
origin
— The origin vector where the ray casts from. -
setFromCamera(
Vector2 coords, Camera camera) → void -
coords
— 2D coordinates of the mouse, in normalized device coordinates (NDC)---X and Y components should be between-1
and1
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited