0

是否可以在一个轴上获取对象的大小并将其放入变量中并将其提供给不同轴上的单独对象?幅度不是那样工作的吗?

4

1 回答 1

-1
//this is the first axis    
Vector3 axis1 = whatever;
//this is the second axis
Vector3 axis2 = whatever;
//this normalizes the second axis
axis2.Normalize();
//this multiplies the the second axis with the first axis' magnitude
axis2 *= axis1.magnitude;
于 2014-08-29T21:28:32.610 回答