Class Utility
Static class that contains various extension methods.
Namespace: Unity.Kinematica
Assembly: solution.dll
Syntax
public static class Utility
Methods
Name | Description |
---|---|
GetAnalogInput(float, float) | Combines two floating point values into a float2 value. |
GetDesiredForwardDirection(float3, float3) | Converts a world space vector into a relative vector w.r.t. the current main camera. |
GetDesiredForwardDirection(float3, float3, float3) | Converts a world space vector into a relative vector. |
GetInputMove(ref float3, ref float) | |
GetRelativeLinearVelocity(float3, float3) | Converts a world space vector into a view-direction relative vector. |
SampleTrajectoryAtTime(NativeSlice<AffineTransform>, float, float) | |
SteerRootMotion(AffineTransform, AffineTransform, float, float, float, float, float) | Returns the interpolated transform between the current and desired root motion, taking into account individual translation and rotation weights |