The "vngen_perspective_modify_direct" Function
#
SyntaxArgument | Type | Description |
---|---|---|
x | real | The horizontal perspective position, where 0 is center |
y | real | The vertical perspective position, where 0 is center |
xoffset | real | The horizontal perspective offset, or 'angle', where 0 is center |
yoffset | real | The vertical perspective offset, or 'angle', where 0 is center |
zoom | real | The perspective zoom multiplier, where 1 is neutral |
rot | real | The perspective rotation, in degrees |
strength | real | The parallax strength multiplier, or 'FOV', where 1 is default and 0 is no parallax |
#
DescriptionApplies a new position, orientation, and focal point to the global perspective directly, outside the qScript loop.
All modifications made with this script are permanent and will persist until another modification is performed.
As this script is not an action, care should be taken in deciding when and where to execute it. If both *_modify
and *_modify_direct
scripts are executed together, whichever is run last will override the other.
#
ExampleThis will map the perspective angle to the mouse, allowing the user to look around the scene.