Parameters: type –
the camera type. Allowed values:
- editor.CameraType_Game - the gameplay camera
- editor.CameraType_Free - the editor free fly-by camera
Sets the current camera in the editor’s viewport.
Returns true if the camera is free camera mode.
Toggles between current in-game camera and free fly (editor) camera.
Returns: the current editor camera
Parameters: pt – the point in world where the camera should look at
Orients the camera to look at a specific world point.
Sets the camera position at the center of the current object selection.
Sets the camera position at the current player position.
Sets the player position at the current editor camera position.
Fit/position the camera viewport to the bounding box of the selected objects, so one can view the entire selection.
Parameters: speed –
the speed of the fly camera movement. Allowed values:
Sets the speed of the editor fly camera.
Parameters: name – the name of the bookmark Returns: the id of the bookmark object
Adds a new named camera bookmark at the current world position.
Parameters: objectId – the object id of the bookmark
Deletes a camera bookmark by its name.
Returns: the bookmarks SimGroup object, where the bookmarks are kept.
Parameters: obj – the camera bookmark object to copy
Copies the camera bookmark to clipboard as text.
Paste the camera bookmark from clipboard.
Delete all the camera bookmarks.
Parameters: objectId – the object id of the bookmark to jump to
Jump to the camera bookmark.
Parameters: obj – the object to get position text for
Return the object location as text. Used internally by the editor.