Battle Talent  V11
Public Member Functions | Public Attributes | List of all members
CrossLink.VelocityCalculator Class Reference

Public Member Functions

void SetParent (VelocityCalculator pb)
 
VelocityCalculator GetParent ()
 
Vector3 GetVelocityEstimateLocal ()
 Local means ignore the velocity by character movement so no matter the character is running or standing still, the velocity you got should be the same the return vec3 is world space More...
 
void ClearVelocity ()
 
Vector3 GetAvgVelocityLocalWithWeight (float sec)
 
Vector3 GetAvgVelocityLocal (float sec)
 
float GetContinousMoveSec (bool local=true)
 
float GetContinousMoveSecAll (bool local=true)
 
float GetContinousMoveSecAve (bool local=true)
 calc based on ave velocity More...
 
Vector3 GetVelocityEstimate ()
 
Vector3 GetAngularVelocityEstimate ()
 
Vector3 GetAvgAngularVelocity (float sec)
 
void Init (Transform estTarget)
 
int GetSample ()
 
void UpdateFrame (float dt)
 

Public Attributes

int velocityAverageFrames = 48
 
int angularVelocityAverageFrames = 48
 
Vector3[] velocitySamples
 
Vector3[] angularVelocitySamples
 
Vector3[] velocitySamplesLocal
 

Member Function Documentation

◆ GetContinousMoveSecAve()

float CrossLink.VelocityCalculator.GetContinousMoveSecAve ( bool  local = true)

calc based on ave velocity

Parameters
local
Returns

◆ GetVelocityEstimateLocal()

Vector3 CrossLink.VelocityCalculator.GetVelocityEstimateLocal ( )

Local means ignore the velocity by character movement so no matter the character is running or standing still, the velocity you got should be the same the return vec3 is world space

Returns