Skip to content

novaphy.ShapeFlags

Bit flags stored on CollisionShape.flags and finalized into Model.shape_flags.

Member Description
NONE No flags enabled.
VISIBLE Shape is visible to viewers.
COLLIDE_SHAPES Shape participates in shape-vs-shape collision.
COLLIDE_PARTICLES Shape participates in particle-vs-shape collision.
SITE Shape is a non-colliding reference site.
HYDROELASTIC Shape requests hydroelastic collision metadata.

The enum is arithmetic in Python, so flags can be combined as a bitmask. Most user code sets these indirectly through ShapeConfig.

Example

flags = int(novaphy.ShapeFlags.VISIBLE | novaphy.ShapeFlags.COLLIDE_SHAPES)
shape.flags = flags

See Also