Click or drag to resize

VelocityCalculatorGetAverageVelocity Method

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.

Namespace:  ImmerseSDK
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.7.0.0 (3.7.0.0)
Syntax
C#
public UnityEngine.Vector3 GetAverageVelocity(
	int numberOfFrames
)

Parameters

numberOfFrames
Type: SystemInt32
the number of frames to use to calculate the average with

Return Value

Type: UnityEngine.Vector3
The average velocity
See Also