public static SmoothDampAngle ( float current, float target, float ¤tVelocity, float smoothTime, float maxSpeed, float deltaTime ) : float | ||
current | float | |
target | float | |
currentVelocity | float | |
smoothTime | float | |
maxSpeed | float | |
deltaTime | float | |
return | float |
public static float SmoothDampAngle(float current, float target, ref float currentVelocity, float smoothTime, float maxSpeed, float deltaTime)
{
target = current + DeltaAngle(current, target);
return SmoothDamp(current, target, ref currentVelocity, smoothTime, maxSpeed, deltaTime);
}
Mathf::SmoothDampAngle ( float current, float target, float ¤tVelocity, float smoothTime ) : float | |
Mathf::SmoothDampAngle ( float current, float target, float ¤tVelocity, float smoothTime, float maxSpeed ) : float |
public static float SmoothDampAngle(float current, float target, ref float currentVelocity, float smoothTime, float maxSpeed) { float deltaTime = Time.deltaTime; return(Mathf.SmoothDampAngle(current, target, ref currentVelocity, smoothTime, maxSpeed, deltaTime)); }