scene_object

The scene object is used to interact with the 3D models in the scene. Move them, rotate them, etc.

resize(scale_x, scale_y, scale_z)Resizes the object by modifying its scaling matrix
set_size(scale_x, scale_y, scale_z)Resizes the object by modifying its scaling matrix
reposition(x, y, z)Changes the position of the object
set_position(x, y, z)Changes the position of the object
set_rotation(...)changes the objects rotation with either euler angles or a quaternions
remove()removes the geometry from the scene
set_frag_shader(shader)sets the fragment shader for this geometry
set_vertex_shader(shader)sets the vertex shader for this geometry
set_geometry_shader(shader)sets the geometry shader for this geometry
clone()creates an instantiated copy of this object and returns it
fields
resize(scale_x, scale_y, scale_z)Source

Resizes the object by modifying its scaling matrix

Parameters

  1. scale_x number the x axis scale factor
  2. scale_y number the y axis scale factor
  3. scale_z number the z axis scale factor

Returns

  1. scene_object the scene object this was used on. used for chaining methods
set_size(scale_x, scale_y, scale_z)Source

Resizes the object by modifying its scaling matrix

Parameters

  1. scale_x number the x axis scale factor
  2. scale_y number the y axis scale factor
  3. scale_z number the z axis scale factor

Returns

  1. scene_object the scene object this was used on. used for chaining methods
reposition(x, y, z)Source

Changes the position of the object

Parameters

  1. x number the x position to set the object to
  2. y number the y position to set the object to
  3. z number the z position to set the object to

Returns

  1. scene_object the scene object this was used on. used for chaining methods
set_position(x, y, z)Source

Changes the position of the object

Parameters

  1. x number the x position to set the object to
  2. y number the y position to set the object to
  3. z number the z position to set the object to

Returns

  1. scene_object the scene object this was used on. used for chaining methods
set_rotation(...)Source

changes the objects rotation with either euler angles or a quaternions

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. scene_object the scene object this was used on. used for chaining methods
remove()Source

removes the geometry from the scene

Returns

  1. scene_object the scene object this was used on. used for chaining methods
set_frag_shader(shader)Source

sets the fragment shader for this geometry

Parameters

  1. shader function the shader function to be set

Returns

  1. scene_object the scene object this was used on. used for chaining methods
set_vertex_shader(shader)Source

sets the vertex shader for this geometry

Parameters

  1. shader function the shader function to be set

Returns

  1. scene_object the scene object this was used on. used for chaining methods
set_geometry_shader(shader)Source

sets the geometry shader for this geometry

Parameters

  1. shader function the shader function to be set

Returns

  1. scene_object the scene object this was used on. used for chaining methods
clone()Source

creates an instantiated copy of this object and returns it

Returns

  1. scene_object the instantiated scene object
fieldsSource
IDthe ID of this object in the internal data BUS
effectsa list that stores the applied shaders to this scene object
propertiesstores properties of the scene object, like color.
IDSource

the ID of this object in the internal data BUS

effectsSource

a list that stores the applied shaders to this scene object

propertiesSource

stores properties of the scene object, like color. texture. and other flags