Abstract
Protected
_dragProtected
_planecastProtected
_previousReturns the current vector associated to a dragging movement since the last frame, and null if not dragging
Returns the current targeted interactable or null.
Returns the current trigger value
If disabled, the Component will stop enacting its behavior.
Protected
indirectDefines the interactor's input type. This can be used for prioritization or for discerning controller vs hands.
Protected
interactionCalled whenever the Interactor changes the target Interactable
Returns the nullable drag vector, computed in the previous frame
Returns the previous targeted interactable or null.
Returns the previous trigger value
Readonly
sceneThe scene object this component is on.
Readonly
uniqueAbstract
activeReturns the targeting mode used to obtain the targeted interactable
Abstract
directionAbstract
distanceDeprecated
in favor of using targetHitInfo Returns the distance to the current target in cm
Abstract
drawif the Interactor is currently drawing a debug gizmo of collider/raycasts in the scene.
Set if the Interactor is should draw a debug gizmo of collider/raycasts in the scene.
Abstract
endAbstract
interactionReturns a normalized value from 0-1, where 0 is the lowest strength and 1 the highest. Returns null if the strength cannot be computed.
Abstract
maxReturns the maximum raycast length for world targeting in cm
Abstract
orientationProtected
planecastAbstract
startAbstract
targetReturns the InteractableHitInfo describing the intersection with the current target This includes information such as the intersection position/normal, the Interactable, the collider, etc
Abstract
targetProtected
Abstract
clearProtected
clearProjects the direct collider's position onto the plane defined by the Interactable's forward vector / origin
the Interactable used to define the plane of intersection
the direct collider's position projected onto the plane
Adds a new SceneEvent, triggered by eventType
events, to the ScriptComponent.
Protected
getReturns the SceneObject the component is attached to.
Abstract
isReturns true if this object is the same as other
. Useful for checking if two references point to the same thing.
Abstract
isCalculates the intersection of the Interactor's indirect raycast and the plane defined by the Interactable's forward vector / origin
the Interactable used to define the plane of intersection
the intersection point of the indirect raycast and plane
Removes a previously added SceneEvent from the ScriptComponent.
Protected
updateStatic
get
Defines API for Interactor type