ShapeUnrealWrapper
- class xrfeitoria.actor.actor_unreal.ShapeUnrealWrapper[source]
Wrapper class for shapes in Unreal Engine.
- classmethod spawn(type: Literal['cube', 'sphere', 'cylinder', 'cone', 'plane'], name: str | None = None, location: Tuple[float, float, float] = (0, 0, 0), rotation: Tuple[float, float, float] = (0, 0, 0), scale: Tuple[float, float, float] = (1, 1, 1)) ActorUnreal[source]
Spawns a shape in the engine and returns its corresponding actor.
- Parameters:
mesh_type (Literal['cube', 'sphere', 'cylinder', 'cone', 'plane']) – the type of the shape.
name (Optional[str], optional) – the name of the shape. Defaults to None.
location (Vector, optional) – the location of the shape. Units are in meters. Defaults to (0, 0, 0).
rotation (Vector, optional) – the rotation of the shape. Units are in degrees. Defaults to (0, 0, 0).
scale (Vector, optional) – the scale of the shape. Defaults to (1, 1, 1).