Utilities and helpers#

Genesis World bundles a set of helper modules under genesis.utils for the operations that surround a simulation: selecting a compute backend, converting between array formats, applying geometric transforms, and loading assets from disk. Each linked page documents one of them in detail.

Modules#

Initialization#

Most utilities assume the library has been initialized. gs.init() selects the backend, sets the random seed and the float precision, and publishes the resolved configuration as module-level globals:

import genesis as gs

gs.init(
    backend=gs.gpu,  # first available of CUDA, ROCm, Metal
    precision="32",
    seed=42,
)

Device and platform utilities covers the backend resolution, the globals it sets (gs.device, gs.backend, gs.EPS), and the precision-dependent dtype aliases.

Components#

See also#

  • Options: the options classes that configure a scene, including the Pydantic base class every one inherits.