Vector3.RotateTowards 转向

static function RotateTowards (current : Vector3, target : Vector3, maxRadiansDelta : float, maxMagnitudeDelta : float) : Vector3

Description描述

Rotates a vector current towards target.

当前的向量转向目标。

The vector will be rotated on an arc instead of being interpolated linearly. This is essentially the same as Vector3.Slerp but instead the function will ensure that the angular speed and change of magnitude never exceeds maxRadiansDelta and maxMagnitudeDelta. Negative values of maxRadiansDelta and maxMagnitudeDelta pushes the vector away from target.

该向量将旋转在弧线上,而不是线性插值。这个函数基本上和Vector3.Slerp相同,而是该函数将确保角速度和变换幅度不会超过maxRadiansDelta和maxMagnitudeDelta。maxRadiansDelta和maxMagnitudeDelta的负值从目标推开该向量。

Page last updated: 2013-1-9