Skip to content

Format

typescript
Transform.TransformVector(vector)

class: Transform

Description

Transforms a vector from local space to world space.

Parameters

param_nametypedescription
vectorVector3The vector in local coordinates.

Return

typedescription
Vector3The vector in world coordinates.

Code Example

typescript
let transform = this.transform;
let vector = new Vector3(5,0,0);
transform.TransformVector(vector);