ObjectBase


class xrfeitoria.object.object_base.ObjectBase(name: str)[source]

Base class for all objects in the world.

__init__(name: str) None[source]
Parameters:

name (str) – name of the object

delete()[source]

Delete the object from the world.

get_transform() Tuple[List, List, List][source]

Get the transform of the object in the world.

Returns:

Transform – location, rotation, scale

set_transform(location: Tuple[float, float, float], rotation: Tuple[float, float, float], scale: Tuple[float, float, float]) None[source]

Set the transform of the object in the world.

Parameters:
  • location (Tuple[float, float, float]) – in meters

  • rotation (Tuple[float, float, float]) – in degrees

  • scale (Tuple[float, float, float]) – no units, 1.0 is default

property location: Tuple[float, float, float]

Location of the object in the world, in meters.

property name: str

Name of the object.

property rotation: Tuple[float, float, float]

Rotation of the object in the world, in degrees.

property scale: Tuple[float, float, float]

Scale of the object in the world, no units, 1.0 is default.