Home > decentraland-ecs > Vector3 > rotateToRef
Rotates current Vector3 based on the given quaternion, but applies the rotation to target Vector3.
Signature:
rotateToRef(q: Quaternion, target: Vector3): void;
Returns: void
Parameter | Type | Description |
---|---|---|
q |
Quaternion |
defines the Quaternion |
target |
Vector3 |
defines the target Vector3 |