fsVfxSetRotation
The fsVfxSetRotation function is used to change the pitch, bank and heading values of a VFX instance.
Syntax
bool fsVfxSetRotation(
FsVfxId id,
FsVec3d newPbh
);
Members
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. |
Return Values
The function will return TRUE if the given ID exists and is a valid VFX instance, otherwise it will return FALSE.
Example
FsVec3d pbh = { 0, 0, 90 };
fsVfxSetWorldPosition(vfxId, pbh);
Remarks
If the VFX instance was spawned on a SimObject, then the new PBH values will be relative to the PBH of the object, however if the VFX instance was spawned in the world, then the PBH values are absolute.