VelocityCalculator Class |
Namespace: ImmerseSDK
public class VelocityCalculator : UnityEngine.MonoBehaviour
The VelocityCalculator type exposes the following members.
Name | Description | |
---|---|---|
VelocityCalculator | Initializes a new instance of the VelocityCalculator class |
Name | Description | |
---|---|---|
AngularVelocity |
Angular Velocity in word coordinates
| |
AverageVelocity |
Average Velocity in world coordinates
| |
Forward |
Points forwards from the controller
| |
Left |
Points left from the controller
| |
Right |
Points right from the controller
| |
Up |
Points upwards from the controller
| |
Velocity |
Velocity in world coordinates
|
Name | Description | |
---|---|---|
FixedUpdate |
Unity component method
| |
GetAverageVelocity |
We keep a history of around BufferSize number of frames for the velocity. This method returns the average velocity between of all the frames up to the specified frame.
| |
GetVelocityAt |
We keep a history of around BufferSize number of frames for the velocity. This method returns the velocity at the particular frame.
|
Name | Description | |
---|---|---|
BufferSize |
Track for this amount of frames in our buffer. This is used to calculate an average, or to reference as a history
|
Name | Description | |
---|---|---|
GetCopyOf |
Copies all properties of a component from source to target. Uses reflection to set properties.
(Defined by ComponentExtensions.) | |
WaitForT |
Waits for a singleton on a coroutine
(Defined by SingletonManager.) |