[Unity]什么是Vector3.Scale函数?
Copyright Notice: This article is an original work licensed under the CC 4.0 BY-NC-ND license.
If you wish to repost this article, please include the original source link and this copyright notice.
Source link: https://v2know.com/article/251
官方描述:
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)
参考资料:
This article was last edited at 2020-04-11 10:36:44