ExMujoco.Types.LightType (ExMujoco v0.2.3)

Copy Markdown View Source

mjtLightType — type of light. From MuJoCo's headers, as numbers. All 4 values carry a number in the header.

Summary

Functions

mjLIGHT_DIRECTIONAL is 1 — directional.

mjLIGHT_IMAGE is 3 — image-based.

mjLIGHT_POINT is 2 — point.

mjLIGHT_SPOT is 0 — spot.

The name behind an integer. An atom is already one.

The integer behind a name. An integer is already one.

Every value, as {name, integer}, in the order the header lists them.

Types

t()

@type t() :: integer()

Functions

directional()

@spec directional() :: 1

mjLIGHT_DIRECTIONAL is 1 — directional.

image()

@spec image() :: 3

mjLIGHT_IMAGE is 3 — image-based.

point()

@spec point() :: 2

mjLIGHT_POINT is 2 — point.

spot()

@spec spot() :: 0

mjLIGHT_SPOT is 0 — spot.

to_atom(value)

@spec to_atom(integer() | atom()) :: atom() | nil

The name behind an integer. An atom is already one.

to_integer(value)

@spec to_integer(t() | atom()) :: integer() | nil

The integer behind a name. An integer is already one.

values()

@spec values() :: [{atom(), integer()}]

Every value, as {name, integer}, in the order the header lists them.