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:29

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:373

Returns: void


# disableEvents

disableEvents(): void

Inherited from EventDispatcher.disableEvents

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

Returns: void


# dispatchEvent

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

Inherited from EventDispatcher.dispatchEvent

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

Parameters:

Name Type
eventName number
arg? SceneEventInfo

Returns: void


# enableDragIn

enableDragIn(mesh: Mesh): void

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

Parameters:

Name Type
mesh Mesh

Returns: void


# enableEvents

enableEvents(): void

Inherited from EventDispatcher.enableEvents

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

Returns: void


# removeEventListener

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

Inherited from EventDispatcher.removeEventListener

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

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:390

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:398

Parameters:

Name Type
mode INTERSECTION_MODE

Returns: void


# setRootComponentId

setRootComponentId(rootComponentId: number): void

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

Parameters:

Name Type
rootComponentId number

Returns: void


# setScene

setScene(scene: Scene): void

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

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:357

Parameters:

Name Type
bounds Vector3
rootComponentPosition Vector3
backgroundScene Scene

Returns: void