두개 벡터 값을 곱한다 * 연산자가 모호해서 Scale 이 추가 된것이라 볼 수 있다

 

Multiplies two vectors component-wise.

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

 

1
2
3
4
5
6
7
8
9
10
11
12
13
// Calculate the two vectors generating a result.
// This will compute Vector3(2, 6, 12)
 
using UnityEngine;
using System.Collections;
 
public class ExampleClass : MonoBehaviour
{
    void Example()
    {
        print(Vector3.Scale(new Vector3(123), new Vector3(234)));
    }
}
 
 

 

 

ref : 

docs.unity3d.com/ScriptReference/Vector3.Scale.html

반응형

+ Recent posts