ReferenceScripting APIVector3constructor
Vector3.constructor
constructorA new vector.
| Name | constructor |
|---|---|
| Kind | constructor of Vector3 |
| Called as | new Vector3(…) |
| Since | 0.3 |
Syntax
new Vector3( x?: number, y?: number, z?: number): Vector3Parameters
| Name | Type | Description |
|---|---|---|
x | number | Optional. Across (0 unless given) |
y | number | Optional. Down in 2D, up in 3D (0 unless given) |
z | number | Optional. Toward you (0 unless given) |
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.