Skip to main content

Class: TossScoreBehaviour

Defined in: webxr-interactions/src/behaviours/toss-score.ts:21

Implements

Constructors

Constructor

new TossScoreBehaviour(config: Omit<TossScoreConfig, "kind">): TossScoreBehaviour;

Defined in: webxr-interactions/src/behaviours/toss-score.ts:33

Parameters

ParameterType
configOmit<TossScoreConfig, "kind">

Returns

TossScoreBehaviour

Properties

PropertyModifierTypeDefault valueDescriptionDefined in
grabbablereadonlyfalsefalseTrue when this behaviour makes the interactable a grab target.webxr-interactions/src/behaviours/toss-score.ts:25
kindreadonly"tossScore""tossScore"-webxr-interactions/src/behaviours/toss-score.ts:22
ownershipreadonly"driven"undefined-webxr-interactions/src/behaviours/toss-score.ts:23
requiresreadonlyreadonly []undefinedALL of these must be satisfied.webxr-interactions/src/behaviours/toss-score.ts:24

Methods

getRadius()

getRadius(): number;

Defined in: webxr-interactions/src/behaviours/toss-score.ts:77

Returns

number


getValue()

getValue(): number;

Defined in: webxr-interactions/src/behaviours/toss-score.ts:69

Current logical 0..1 value (state snapshots, HUDs).

Returns

number

Implementation of

Behaviour.getValue


setRadius()

setRadius(radius: number): void;

Defined in: webxr-interactions/src/behaviours/toss-score.ts:73

Parameters

ParameterType
radiusnumber

Returns

void


update()

update(ctx: BehaviourContext): void;

Defined in: webxr-interactions/src/behaviours/toss-score.ts:39

Per-frame tick. holder is set while a grab interactor holds this interactable (grab-family behaviours consume it; others ignore it).

Parameters

ParameterType
ctxBehaviourContext

Returns

void

Implementation of

Behaviour.update