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 carries site/reference metadata. The bit is independent of both collision bits. |
HYDROELASTIC |
Shape requests hydroelastic collision metadata. |
Convert members to integers when combining flags as a bitmask. Most user
code sets them indirectly through ShapeConfig.
Use ShapeConfig.mark_as_site() when the intended site should also have
shape and particle collisions disabled.
Example¶
flags = (
int(novaphy.ShapeFlags.VISIBLE)
| int(novaphy.ShapeFlags.COLLIDE_SHAPES)
)
shape.flags = flags