API reference
API reference
Select your platform
No SDKs available
No versions available

ThrowWhenUnselected Class

Tracks the movement of a rigidbody while it is selected by an IPointable and applies a throw velocity when it becomes fully unselected.
Oculus::Interaction::Grabbable::ThrowWhenUnselected extends Oculus.Interaction.ITimeConsumer.
Oculus::Interaction::Grabbable::ThrowWhenUnselected extends System.IDisposable.

Overview

Public Member Functions

void
SetTimeProvider
( Func< float > timeProvider )
ThrowWhenUnselected
( Rigidbody rigidbody,
IPointable pointable )
Creates a new instance that listens to the provided IPointable events.
void
Dispose ( )
Unregisters the instance from the IPointable events.

Details

Member Functions

void Oculus.Interaction.Grabbable.ThrowWhenUnselected.SetTimeProvider
( Func< float > timeProvider )
No description available.
Oculus.Interaction.Grabbable.ThrowWhenUnselected.ThrowWhenUnselected
( Rigidbody rigidbody,
IPointable pointable )
Creates a new instance that listens to the provided IPointable events.
Note that this instance must be disposed via .Dispose() to release the event listener.
Parameters
rigidbody
The rigidbody to track velocity from and throw.
pointable
The IPointable indicating when the rigidbody is selected and unselected.
void Oculus.Interaction.Grabbable.ThrowWhenUnselected.Dispose ( )
Unregisters the instance from the IPointable events.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon