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.
void SetTimeProvider ( Func< float > timeProvider )
ThrowWhenUnselected ( Rigidbody rigidbody,
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.
ParametersrigidbodyThe rigidbody to track velocity from and throw.
pointableThe IPointable indicating when the rigidbody is selected and unselected.
Unregisters the instance from the IPointable events.