camera_object

the methods for the camera object

set_position(x, y, z)makes and changes the cameras position matrix to the given coordinates
set_rotation(...)makes and changes the cameras rotation matrix to either euler angles or a quaternion
lookat_transform(x, y, z, at_x, at_y, at_z)allows you to have the camera look at specific point from a specific position
set_transform(transform)sets a custom transformation matrix to the camera
fieldsthe fields stored in the camera object
set_position(x, y, z)Source

makes and changes the cameras position matrix to the given coordinates

Parameters

  1. x number the x position of the camera
  2. y number the y position of the camera
  3. z number the z position of the camera

Returns

  1. camera the used camera object used for tailing methods
set_rotation(...)Source

makes and changes the cameras rotation matrix to either euler angles or a quaternion

Parameters

  1. euler_x number the rotation around the x axis in degrees
  2. euler_y number the rotation around the y axis in degrees
  3. euler_z number the rotation around the z axis in degrees

Or

  1. quat_x number the x position of the rotation direction vector
  2. quat_y number the y position of the rotation direction vector
  3. quat_z number the z position of the rotation direction vector
  4. vec_rot number the rotation around the direction vector in degrees

Returns

  1. camera the used camera object used for tailing methods
lookat_transform(x, y, z, at_x, at_y, at_z)Source

allows you to have the camera look at specific point from a specific position

Parameters

  1. x number the x coordinate of the camera
  2. y number the y coordinate of the camera
  3. z number the z coordinate of the camera
  4. at_x number the x coordinate of the point the camera should look at
  5. at_y number the y coordinate of the point the camera should look at
  6. at_z number the z coordinate of the point the camera should look at
set_transform(transform)Source

sets a custom transformation matrix to the camera

Parameters

  1. transform table the matrix to use as the camera transform
fieldsSource

the fields stored in the camera object

rotationthe cameras rotation matrix
positionthe cameras translation matrix
transformthe optional transformation matrix
rotationSource

the cameras rotation matrix

positionSource

the cameras translation matrix

transformSource

the optional transformation matrix