Tanoda
|
The sliding window throw handler implements a simple heuristic that provides a reasonably accurate measure of the user's intended "throw direction" for a physical object. It is used as the default implementation of an Interaction Behaviour's throw handler. More...
Public Member Functions | |
void | OnHold (InteractionBehaviour intObj, ReadonlyList< InteractionController > controllers) |
Samples the current velocity and adds it to a rolling average. More... | |
void | OnThrow (InteractionBehaviour intObj, InteractionController throwingController) |
Transfers the averaged velocity to the released object. More... | |
void | OnHold (InteractionBehaviour intObj, ReadonlyList< InteractionController > controllers) |
Called every FixedUpdate frame while an interaction object is being held. More... | |
void | OnThrow (InteractionBehaviour intObj, InteractionController controller) |
Called when an Interaction object is released by the last interaction controller holding it. More... | |
The sliding window throw handler implements a simple heuristic that provides a reasonably accurate measure of the user's intended "throw direction" for a physical object. It is used as the default implementation of an Interaction Behaviour's throw handler.
Definition at line 21 of file SlidingWindowThrow.cs.
void Leap.Unity.Interaction.SlidingWindowThrow.OnHold | ( | InteractionBehaviour | intObj, |
ReadonlyList< InteractionController > | controllers | ||
) |
Samples the current velocity and adds it to a rolling average.
Implements Leap.Unity.Interaction.IThrowHandler.
Definition at line 66 of file SlidingWindowThrow.cs.
void Leap.Unity.Interaction.SlidingWindowThrow.OnThrow | ( | InteractionBehaviour | intObj, |
InteractionController | throwingController | ||
) |
Transfers the averaged velocity to the released object.
Implements Leap.Unity.Interaction.IThrowHandler.
Definition at line 91 of file SlidingWindowThrow.cs.