Classes
- EventListeners
Methods
intersectionsInOut(particles, raycaster, renderer, mouse, settingsopt)
Intersection of the mouse pointer in or out of a 3D object.
Parameters:
Name |
Type |
Attributes |
Default |
Description |
particles |
Array
|
|
|
array of Mechs or derived class objects to check for intersection with the ray.
See addParticle. |
raycaster |
THREE.Raycaster
|
|
|
Raycaster |
renderer |
THREE.WebGLRenderer
|
|
|
WebGLRenderer |
mouse |
THREE.Vector2
|
|
|
mouse position. |
settings |
Object
|
<optional>
|
{}
|
the following settings are available
Properties
Name |
Type |
Attributes |
Default |
Description |
options |
Options
|
<optional>
|
{}
|
Options instance |
camera |
THREE.Camera
|
|
|
PerspectiveCamera instance |
scene |
THREE.Scene
|
|
|
Scene instance. |
|
- Source:
Returns:
onIntersection(intersection, options, scene, camera, renderer)
Displays a sprite text if you move mouse over an 3D object
Parameters:
Name |
Type |
Description |
intersection |
Object
|
See .intersectObject for details. |
options |
Options
|
the following options are available.
See the options parameter of the MyThree class.
Properties
Name |
Type |
Attributes |
Description |
spriteText |
object
|
<optional>
|
spriteText options. See SpriteText options parameter for details. |
scales |
object
|
<optional>
|
axes scales.
See options.scales parameter of the AxesHelper class for details. |
|
scene |
THREE.Scene
|
Scene. |
camera |
THREE.Camera
|
PerspectiveCamera. |
renderer |
THREE.WebGLRenderer
|
WebGLRenderer instance. |
- Source:
onIntersectionOut(scene, renderer)
Hides a sprite text if you move mouse out an object.
Parameters:
Name |
Type |
Description |
scene |
THREE.Scene
|
Scene. |
renderer |
THREE.WebGLRenderer
|
WebGLRenderer instance. |
- Source:
onMouseDown(intersection, options)
The
pointerdown
event is fired when a pointer becomes active. For mouse, it is fired when the device transitions from no buttons depressed to at least one button depressed. For touch, it is fired when physical contact is made with the digitizer. For pen, it is fired when the stylus makes physical contact with the digitizer.
Parameters:
Name |
Type |
Description |
intersection |
Object
|
See .intersectObject for details. |
options |
Options
|
the following options are available.
Properties
Name |
Type |
Attributes |
Description |
guiSelectPoint |
GuiSelectPoint
|
<optional>
|
GuiSelectPoint instance was created. |
axesHelper |
AxesHelper
|
<optional>
|
AxesHelper instance was created. |
|
- Source: