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
| Parameter | Type |
|---|---|
config | Omit<TossScoreConfig, "kind"> |
Returns
TossScoreBehaviour
Properties
| Property | Modifier | Type | Default value | Description | Defined in |
|---|---|---|---|---|---|
grabbable | readonly | false | false | True when this behaviour makes the interactable a grab target. | webxr-interactions/src/behaviours/toss-score.ts:25 |
kind | readonly | "tossScore" | "tossScore" | - | webxr-interactions/src/behaviours/toss-score.ts:22 |
ownership | readonly | "driven" | undefined | - | webxr-interactions/src/behaviours/toss-score.ts:23 |
requires | readonly | readonly [] | undefined | ALL 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
setRadius()
setRadius(radius: number): void;
Defined in: webxr-interactions/src/behaviours/toss-score.ts:73
Parameters
| Parameter | Type |
|---|---|
radius | number |
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
| Parameter | Type |
|---|---|
ctx | BehaviourContext |
Returns
void