Skip to main content
Version: 21 Aug 2024

MLPlane

Module: Planes

More...

#include <ml_planes.h>

Public Attributes

TypeName
MLVec3fposition
MLQuaternionfrotation
floatwidth
floatheight
uint32_tflags
MLHandleid
Plane ID. All inner planes within an outer plane will have the same ID (outer plane's ID). These IDs are persistent across plane queries unless a map merge occurs. On a map merge, IDs could be different.

Detailed Description

struct MLPlane;

A plane with width and height.


Public Attributes Documentation

position

MLVec3f position;

Plane center.


rotation

MLQuaternionf rotation;

Plane rotation.


width

float width;

Plane width.


height

float height;

Plane height.


flags

uint32_t flags;

Flags which describe this plane.


id

MLHandle id;

Plane ID. All inner planes within an outer plane will have the same ID (outer plane's ID). These IDs are persistent across plane queries unless a map merge occurs. On a map merge, IDs could be different.

TypeDescription
MLHandleInteger handle type used to reference many things returned by the API, instead of returning pointers directly. Use MLHandleIsValid() to check if a handle is valid or not.