Tanoda
Leap.Unity.Examples.InertiaPostProcessProvider Class Reference
Inheritance diagram for Leap.Unity.Examples.InertiaPostProcessProvider:
Leap.Unity.PostProcessProvider Leap.Unity.LeapProvider

Public Member Functions

override void ProcessFrame (ref Frame inputFrame)
 Post-processes the input frame in place to give hands bouncy-feeling physics. More...
 
abstract void ProcessFrame (ref Frame inputFrame)
 

Public Attributes

float stiffness = 2f
 
float damping = 2f
 
- Public Attributes inherited from Leap.Unity.PostProcessProvider
DataUpdateMode dataUpdateMode = DataUpdateMode.UpdateOnly
 
bool passthroughOnly = false
 
- Public Attributes inherited from Leap.Unity.LeapProvider
TestHandPose editTimePose = TestHandPose.HeadMountedA
 

Additional Inherited Members

- Public Types inherited from Leap.Unity.PostProcessProvider
enum  DataUpdateMode { UpdateOnly , FixedUpdateOnly , UpdateAndFixedUpdate }
 
- Protected Member Functions inherited from Leap.Unity.PostProcessProvider
virtual void OnEnable ()
 
virtual void OnValidate ()
 
- Protected Member Functions inherited from Leap.Unity.LeapProvider
void DispatchUpdateFrameEvent (Frame frame)
 
void DispatchFixedFrameEvent (Frame frame)
 
- Protected Attributes inherited from Leap.Unity.PostProcessProvider
LeapProvider _inputLeapProvider
 
- Properties inherited from Leap.Unity.PostProcessProvider
LeapProvider inputLeapProvider [get, set]
 
virtual bool implementerHandlesDispatch [get]
 Override this as true to have your PostProcessProvider handle its own Dispatch timing. For example, you can dispatch an Update frame in LateUpdate instead of Update. More...
 
override Frame CurrentFrame [get]
 
override Frame CurrentFixedFrame [get]
 
- Properties inherited from Leap.Unity.LeapProvider
abstract Frame CurrentFrame [get]
 The current frame for this update cycle, in world space. More...
 
abstract Frame CurrentFixedFrame [get]
 The current frame for this fixed update cycle, in world space. More...
 
- Events inherited from Leap.Unity.LeapProvider
Action< FrameOnUpdateFrame
 
Action< FrameOnFixedFrame
 
Action< FrameOnPostUpdateFrame
 

Detailed Description

Definition at line 14 of file InertiaPostProcessProvider.cs.

Member Function Documentation

◆ ProcessFrame()

override void Leap.Unity.Examples.InertiaPostProcessProvider.ProcessFrame ( ref Frame  inputFrame)
virtual

Post-processes the input frame in place to give hands bouncy-feeling physics.

Implements Leap.Unity.PostProcessProvider.

Definition at line 45 of file InertiaPostProcessProvider.cs.

Member Data Documentation

◆ damping

float Leap.Unity.Examples.InertiaPostProcessProvider.damping = 2f

Definition at line 24 of file InertiaPostProcessProvider.cs.

◆ stiffness

float Leap.Unity.Examples.InertiaPostProcessProvider.stiffness = 2f

Definition at line 20 of file InertiaPostProcessProvider.cs.


The documentation for this class was generated from the following file: