newton.StateFlags#

class newton.StateFlags(*values)[source]#

Bases: IntEnum

Flags indicating which state attributes should be reset.

These flags are used with reset() to control which parts of the simulation state are reset, allowing the solver to efficiently update only the necessary components.

ALL = 63#

Indicates all state attributes should be reset.

BODY_Q = 4#

State.body_q.

Type:

Indicates maximal body position coordinates

BODY_QD = 8#

State.body_qd.

Type:

Indicates maximal body velocity coordinates

JOINT_Q = 1#

State.joint_q.

Type:

Indicates reduced joint position coordinates

JOINT_QD = 2#

State.joint_qd.

Type:

Indicates reduced joint velocity coordinates

PARTICLE_Q = 16#

State.particle_q.

Type:

Indicates particle positions

PARTICLE_QD = 32#

State.particle_qd.

Type:

Indicates particle velocities