# fsVfxSetRotation The **fsVfxSetRotation** function is used to change the pitch, bank and heading values of a VFX instance.   ##### Syntax ``` wasm bool fsVfxSetRotation( FsVfxId id, FsVec3d newPbh ); ```   ##### Members {{< table-wrapper >}} | Parameters | Description | |------------|-----------------------------------------------------------------------------------------------------------------| | `id` | The ID of the VFX to set the rotation of, as returned by either `fsVfxSpawnInWorld` or `fsVfxSpawnOnSimObject`. | | `newPbh` | An array of three values representing the new pitch bank and heading values. | {{< /table-wrapper >}}   ##### Return Values The function will return TRUE if the given ID exists and is a valid VFX instance, otherwise it will return FALSE.   ##### Example ``` wasm FsVec3d pbh = { 0, 0, 90 }; fsVfxSetWorldPosition(vfxId, pbh); ```   ##### Remarks If the VFX instance was spawned on a SimObject, then the new {{< glossterm >}}pbh{{< /glossterm >}} values will be relative to the {{< glossterm >}}pbh{{< /glossterm >}} of the object, however if the VFX instance was spawned in the world, then the {{< glossterm >}}pbh{{< /glossterm >}} values are absolute.