unreal.PlaneResult

class unreal.PlaneResult(plane_position=[0.0, 0.0, 0.0], plane_orientation=[0.0, 0.0, 0.0], content_orientation=[0.0, 0.0, 0.0], plane_dimensions=[0.0, 0.0], plane_flags=[], boundary_polygon=[], id=[])

Bases: unreal.StructBase

Represents a plane returned from the ML-API.

C++ Source:

  • Plugin: MagicLeap
  • Module: MagicLeap
  • File: PlanesComponent.h

Editor Properties: (see get_editor_property/set_editor_property)

  • boundary_polygon (Array(Vector)): [Read-Write] The Boundary of the plane in plane local space.
  • content_orientation (Rotator): [Read-Write] Orientation of the content with its up-vector orthogonal to the plane.
  • id (Guid): [Read-Write] ID of the plane result. This ID is persistent across queries
  • plane_dimensions (Vector2D): [Read-Write] Width and height of the plane (in Unreal units).
  • plane_flags (Array(PlaneQueryFlags)): [Read-Write] The flags which describe this plane. TODO: Should be a TSet but that is misbehaving in the editor.
  • plane_orientation (Rotator): [Read-Write] Orientation of the plane.
  • plane_position (Vector): [Read-Write] Position of the center of the plane in world coordinates.
boundary_polygon

(Array(Vector)) – [Read-Write] The Boundary of the plane in plane local space.

content_orientation

(Rotator) – [Read-Write] Orientation of the content with its up-vector orthogonal to the plane.

id

(Guid) – [Read-Only] ID of the plane result. This ID is persistent across queries

plane_dimensions

(Vector2D) – [Read-Write] Width and height of the plane (in Unreal units).

plane_flags

**(Array(PlaneQueryFlags))* – [Read-Write] The flags which describe this plane. TODO* – Should be a TSet but that is misbehaving in the editor.

plane_orientation

(Rotator) – [Read-Write] Orientation of the plane.

plane_position

(Vector) – [Read-Write] Position of the center of the plane in world coordinates.