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

ThrowWhenUnselected Class

Extends ITimeConsumer, IDisposable
Tracks the movement of a rigidbody while it is selected by an IPointable and applies a throw velocity when it becomes fully unselected.

Member Functions

void SetTimeProvider
( Func< float > timeProvider )
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.
Unregisters the instance from the IPointable events.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon