Version: 1.8
LanguageEnglish
  • C#

AnimationFacingWarpPlayable.SetMaxRotationSpeed

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public void SetMaxRotationSpeed(float maxRotationSpeed);

Parameters

maxRotationSpeed Upper bound on angular velocity (in degrees/second) for turning the locomotion toward the target angle; works together with SmoothTime. Unlike SmoothTime (which shapes acceleration/deceleration but does not cap speed), this is a hard, frame-rate–independent limit: per frame, the applied rotation is clamped to maxRotationSpeed * deltaTime. It does not change the target angle, only the rate at which the playable approaches it. Smaller values yield smoother but slower response; larger values are more responsive but can feel snappier.

Description

Sets the maximum rotation speed in degrees/second.