RBX.lua.Camera (Object): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
no edit summary
>Sncplay42 (Added Local template) |
>MrNicNac No edit summary |
||
Line 17: | Line 17: | ||
Current Limitations: The current Camera is not designed to be manipulated by the Lua API. As a result you cannot take complete control of the Camera using a script. Editing the CoordinateFrame property of the Camera Object can control it, however the game engine will edit the camera's state once every frame, resulting in a minimum 1 frame lag when manually editing a camera. | Current Limitations: The current Camera is not designed to be manipulated by the Lua API. As a result you cannot take complete control of the Camera using a script. Editing the CoordinateFrame property of the Camera Object can control it, however the game engine will edit the camera's state once every frame, resulting in a minimum 1 frame lag when manually editing a camera. Also, the camera cannot be turned upside down. The Y CoordinateFrame property cannot go below 0. | ||
It is possible to lock the camera to a position, if you set it's position or CFrame values to math.huge it will prevent the camera from moving. This can cause issues, or it may not work at all. Use with caution. | It is possible to lock the camera to a position, if you set it's position or CFrame values to math.huge it will prevent the camera from moving. This can cause issues, or it may not work at all. Use with caution. |