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

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

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

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


# getLayers

getLayers(): Layers‹›

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

Returns: Layers‹›


# intersectMouseOnScene

intersectMouseOnScene(event: InputEvent): KernelVector3

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

Parameters:

Name Type
event InputEvent

Returns: KernelVector3


# 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:404

Parameters:

Name Type
camera Camera

Returns: void


# setLayers

setLayers(layers: Layers): void

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

Parameters:

Name Type
layers Layers

Returns: void


# setMode

setMode(mode: INTERSECTION_MODE): void

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

Parameters:

Name Type
mode INTERSECTION_MODE

Returns: void


# setRootComponentId

setRootComponentId(rootComponentId: number): void

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

Parameters:

Name Type
rootComponentId number

Returns: void


# setScene

setScene(scene: Scene): void

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

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

Parameters:

Name Type
bounds Vector3
rootComponentPosition Vector3
backgroundScene Scene

Returns: void