Selaa lähdekoodia

Docs: Improve Sprite.raycast().

Mugen87 6 vuotta sitten
vanhempi
commit
10b9b142c0
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      docs/api/en/objects/Sprite.html

+ 2 - 2
docs/api/en/objects/Sprite.html

@@ -78,8 +78,8 @@ scene.add( sprite );
 
 		<h3>[method:null raycast]( [param:Raycaster raycaster], [param:Array intersects] )</h3>
 		<p>
-		Get intersections between a casted ray and this sprite.
-		[page:Raycaster.intersectObject] will call this method.
+		Get intersections between a casted ray and this sprite. [page:Raycaster.intersectObject]() will call this method.
+		Notice that you have to setup your raycaster with [page:Raycaster.setFromCamera]() when raycasting against sprites.
 		</p>