Introduced in | |
Version: | 3.7 |
---|---|
Description | |
Description: | Sets a camera's view frustum. All parameters are given as tangents of angles, going from the center of the camera direction. |
Syntax | |
Syntax: | camera camSetFrustum [custom, width, height] |
Parameters: | |
Return Value: | Boolean - Set to true if command succeeded. |
Alternative Syntax | |
Syntax: | camera camSetFrustum [custom, left, right, bottom, top] |
Parameters: |
|
Return Value: | Boolean - Set to true if command succeeded. |
Examples | |
Examples: | Sets FOV width to 60 degrees from center of camera direction to both sides (120 degrees total), height is adjusted so aspect ratio is kept.cam1 camSetFrustum [true, tan 60]Sets FOV width to 50 degrees total (25 degrees from center of camera direction to both sides): cam1 camSetFrustum [true, tan (50/2)]Resets the camera frustum to default view: cam1 camSetFrustum [false] |
Additional Information | |
See also: | camFrustum, setCamFrustum |
Multiplayer: | |
Problems: |
Notes