public static bool RotationDirection(Vector3 currentDir, Vector3 previousDir)
{
if (Vector3.Cross(currentDir, previousDir).z > 0)
{
//顺时针
return true;
}
else
{
//逆时针
return false;
}
}
网友评论