Quaternion.RotateTowards 转向

static function RotateTowards (from : Quaternion, to : Quaternion, maxDegreesDelta : float) : Quaternion

Description描述

Rotates a rotation from towards to.

旋转一个角度从from向to。

This is essentially the same as Quaternion.Slerp but instead the function will ensure that the angular speed never exceeds maxDegreesDelta. Negative values of maxDegreesDelta pushes the rotation away from to.

这基本上和Quaternion.Slerp相同,但是这个函数的角速度永远不会超过maxDegreesDelta。负的maxDegreesDelta值将使旋转远离to。

Page last updated: 2011-1-16