diff --git a/docs/api/core/Projector.html b/docs/api/core/Projector.html index b081260d27fb296233395f545e5a61b1c920256a..db1107f990d67da42c62bc19292268984b0818fe 100644 --- a/docs/api/core/Projector.html +++ b/docs/api/core/Projector.html @@ -20,9 +20,23 @@

Methods

.projectVector( [page:Vector3 vector], [page:Camera camera] ) [page:Vector3]

+
+ [page:Vector3 vector] — vector to project.
+ [page:Camera camera] — camera to use in the projection.
+
+
+ Projects a vector with the camera. Caution, this method changes 'vector'. +

.unprojectVector( [page:Vector3 vector], [page:Camera camera] ) [page:Vector3]

- +
+ [page:Vector3 vector] — vector to unproject.
+ [page:Camera camera] — camera to use in the projection.
+
+
+ Unprojects a vector with the camera. Caution, this method changes 'vector'. +
+

.pickingRay( [page:Vector3 vector], [page:Camera camera] ) [page:Raycaster]

Translates a 2D point from NDC (Normalized Device Coordinates) to a [page:Raycaster] that can be used for picking. NDC range from [-1..1] in x (left to right) and [1.0 .. -1.0] in y (top to bottom). diff --git a/docs/api/core/Raycaster.html b/docs/api/core/Raycaster.html index 8ad6d52df43a35f1ec96aa829741f80dcdb5b925..ea51850b70d453fcebb7dbb3165dbcf7e6bd749d 100644 --- a/docs/api/core/Raycaster.html +++ b/docs/api/core/Raycaster.html @@ -9,24 +9,77 @@

[name]

-
todo
+
+ This class makes raycasting easier. Raycasting is used for picking and more. + +

Constructor

-

[name]()

+

[name]( [page:Vector3 origin], [page:Vector3 direction], [page:Float near], [page:Float far] ) {

+
+ [page:Vector3 origin] — The origin vector where the ray casts from.
+ [page:Vector3 direction] — The direction vector that gives direction to the ray.
+ [page:Float near] — All results returned are further away then near. Near can't be negative. Default value is 0.
+ [page:Float far] — All results returned are closer then far. Far can't be lower then near . Default value is Infinity. +
+
+ This creates a new raycaster object.
+

Properties

-

.[page:Vector3 todo]

+

.[page:Ray ray]

+
+ The Ray used for the raycasting. +
+ +

.[page:float near]

+
+ The near factor of the raycaster. This value indicates which objects can be discarded based on the distance.
+ This value shouldn't be negative and should be smaller then the far property. +
+

.[page:float far]

+
+ The far factor of the raycaster. This value indicates which objects can be discarded based on the distance.
+ This value shouldn't be negative and should be smaller then the far property. +
+ +

.[page:float precision]

+
+ The precision factor of the raycaster. +

Methods

-

.todo( [page:Vector3 todo] )

+

.set( [page:Vector3 origin], [page:Vector3 direction] )

+
+ [page:Vector3 origin] — The origin vector where the ray casts from.
+ [page:Vector3 direction] — The direction vector that gives direction to the ray. +
+
+ Updates the ray with a new origin and direction. +
+ +

.intersectObject( [page:Object3D object], [page:Boolean recursive] )

+
+ [page:Object3D object] — The object to check for intersection with the ray.
+ [page:Boolean recursive] — If set, it also checks all descendants. Otherwise it only checks intersecton with the object. +
+
+ checks all intersection between the ray and the object with or without the descendants. +
+ +

.intersectObjects( [page:Array objects], [page:Boolean recursive] )

+
+ [page:Array objects] — The objects to check for intersection with the ray.
+ [page:Boolean recursive] — If set, it also checks all descendants of the objects. Otherwise it only checks intersecton with the objects. +
- todo — todo
+ checks all intersection between the ray and the objects with or without the descendants.
diff --git a/docs/api/lights/AmbientLight.html b/docs/api/lights/AmbientLight.html index 62258ed6b0c67ddbad4b8fc8a9cea332d24bb758..32bfe1e3c77fd6ef1ba24cae9d296f3786f1ba40 100644 --- a/docs/api/lights/AmbientLight.html +++ b/docs/api/lights/AmbientLight.html @@ -24,6 +24,13 @@ scene.add( light );

Constructor

[name]( [page:Float hex] )

+
+ [page:Integer hex] — Numeric value of the RGB component of the color. +
+
+ This creates a Ambientlight with a color. +
+

Source

diff --git a/docs/api/lights/Light.html b/docs/api/lights/Light.html index 6937cf755e43ac6fe96693e03d2058c2eb298db6..2e0a20941d75fbebde354aacb81ff1d689525794 100644 --- a/docs/api/lights/Light.html +++ b/docs/api/lights/Light.html @@ -17,12 +17,20 @@

Constructor

[name]( [page:Integer hex] )

+
+ [page:Integer hex] — Numeric value of the RGB component of the color. +
+
+ This creates a light with color.
+

Properties

.[page:Color color]

- +
+ Color of the light.
+

Source