Format
typescript
Transform.TransformVector(vector)class: Transform
Description
Transforms a vector from local space to world space.
Parameters
| param_name | type | description |
|---|---|---|
| vector | Vector3 | The vector in local coordinates. |
Return
| type | description |
|---|---|
Vector3 | The vector in world coordinates. |
Code Example
typescript
let transform = this.transform;
let vector = new Vector3(5,0,0);
transform.TransformVector(vector);