ExMujoco.Types.FlexSelf (ExMujoco v0.2.2)

Copy Markdown View Source

mjtFlexSelf — mode for flex selfcollide. From MuJoCo's headers, as numbers. All 5 values carry a number in the header.

Summary

Functions

mjFLEXSELF_AUTO is 4 — choose between BVH and SAP automatically.

mjFLEXSELF_BVH is 2 — use BVH in midphase (if midphase enabled).

mjFLEXSELF_NARROW is 1 — skip midphase, go directly to narrowphase.

mjFLEXSELF_NONE is 0 — no self-collisions.

mjFLEXSELF_SAP is 3 — use SAP in midphase.

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

auto()

@spec auto() :: 4

mjFLEXSELF_AUTO is 4 — choose between BVH and SAP automatically.

bvh()

@spec bvh() :: 2

mjFLEXSELF_BVH is 2 — use BVH in midphase (if midphase enabled).

narrow()

@spec narrow() :: 1

mjFLEXSELF_NARROW is 1 — skip midphase, go directly to narrowphase.

none()

@spec none() :: 0

mjFLEXSELF_NONE is 0 — no self-collisions.

sap()

@spec sap() :: 3

mjFLEXSELF_SAP is 3 — use SAP in midphase.

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.