API ReferenceGlobalsRaycastHelper

# Class: RaycastHelper

# Hierarchy

# Index

# Constructors

# Methods

# Constructors

# constructor

+ new RaycastHelper(scene: Scene, camera: Camera, generalInput: InputManager, mode?: INTERSECTION_MODE): RaycastHelper

Defined in packages/configurator-core/src/utils/raycast-helper.ts:46

Parameters:

Name Type
scene Scene
camera Camera
generalInput InputManager
mode? INTERSECTION_MODE

Returns: RaycastHelper

# Methods

# addEventListener

addEventListener(eventName: number, callback: ListenerFunction‹SceneEventInfo›, scope: any): void

Inherited from EventDispatcher.addEventListener

Defined in packages/configurator-core/src/utils/event-dispatcher.ts:28

Parameters:

Name Type
eventName number
callback ListenerFunction‹SceneEventInfo›
scope any

Returns: void


# clear

clear(): void

Defined in packages/configurator-core/src/utils/raycast-helper.ts:368

Returns: void


# dispatchEvent

dispatchEvent(eventName: number, arg?: SceneEventInfo): void

Inherited from EventDispatcher.dispatchEvent

Defined in packages/configurator-core/src/utils/event-dispatcher.ts:32

Parameters:

Name Type
eventName number
arg? SceneEventInfo

Returns: void


# enableDragIn

enableDragIn(mesh: Mesh): void

Defined in packages/configurator-core/src/utils/raycast-helper.ts:377

Parameters:

Name Type
mesh Mesh

Returns: void


# removeEventListener

removeEventListener(eventName: number, fun: ListenerFunction‹SceneEventInfo›): void

Inherited from EventDispatcher.removeEventListener

Defined in packages/configurator-core/src/utils/event-dispatcher.ts:48

Parameters:

Name Type
eventName number
fun ListenerFunction‹SceneEventInfo›

Returns: void


# setCamera

setCamera(camera: Camera): void

Defined in packages/configurator-core/src/utils/raycast-helper.ts:385

Parameters:

Name Type
camera Camera

Returns: void


# setLayers

setLayers(layers: Layers): void

Defined in packages/configurator-core/src/utils/raycast-helper.ts:63

Parameters:

Name Type
layers Layers

Returns: void


# setMode

setMode(mode: INTERSECTION_MODE): void

Defined in packages/configurator-core/src/utils/raycast-helper.ts:393

Parameters:

Name Type
mode INTERSECTION_MODE

Returns: void


# setRootComponentId

setRootComponentId(rootComponentId: number): void

Defined in packages/configurator-core/src/utils/raycast-helper.ts:381

Parameters:

Name Type
rootComponentId number

Returns: void


# setScene

setScene(scene: Scene): void

Defined in packages/configurator-core/src/utils/raycast-helper.ts:389

Parameters:

Name Type
scene Scene

Returns: void


# update

update(bounds: Vector3, rootComponentPosition: Vector3, backgroundScene: Scene): void

Defined in packages/configurator-core/src/utils/raycast-helper.ts:352

Parameters:

Name Type
bounds Vector3
rootComponentPosition Vector3
backgroundScene Scene

Returns: void