EKsumic's Blog

let today = new Beginning();

Click the left button to use the catalog.

OR

[Unity]什么是Vector3.Scale函数?

官方描述:

Multiplies two vectors component-wise.

Every component in the result is a component of a multiplied by the same component of b.

 

事实上就是两个向量相乘:

一张图

如图所示,(2,3,-1)*(1,2,1)=(2,6,-1)。

图

(2,6,-1).normalized=(0.3,0.9,-0.2)

 

 

参考资料:

[1] 两个向量相乘的几何意义是什么?

[2] Unity官方文档 - Vector3.Scale

This article was last edited at 2020-04-11 19:36:44

* *