|
@@ -449,13 +449,13 @@ World
|
|
|
Camera
|
|
Camera
|
|
|
------
|
|
------
|
|
|
|
|
|
|
|
- **camera** (world, unit) : Id
|
|
|
|
|
- Returns the camera owned by unit *id*.
|
|
|
|
|
-
|
|
|
|
|
**camera_create** (world, unit, projection, fov, far_range, near_range, pose) : Id
|
|
**camera_create** (world, unit, projection, fov, far_range, near_range, pose) : Id
|
|
|
Creates a new camera for *unit* and returns its id.
|
|
Creates a new camera for *unit* and returns its id.
|
|
|
Projection can be either ``orthographic`` or ``perspective``.
|
|
Projection can be either ``orthographic`` or ``perspective``.
|
|
|
|
|
|
|
|
|
|
+ **camera_instances** (world, unit) : Id
|
|
|
|
|
+ Returns the id of the camera owned by *unit*.
|
|
|
|
|
+
|
|
|
**camera_set_projection_type** (world, camera, projection)
|
|
**camera_set_projection_type** (world, camera, projection)
|
|
|
Sets the projection type of the camera.
|
|
Sets the projection type of the camera.
|
|
|
Projection can be either ``orthographic`` or ``perspective``.
|
|
Projection can be either ``orthographic`` or ``perspective``.
|