simulo.Collision
Collision properties.
Attributes:
enabled— Whether collision is active
NOTE: Collision.enabled is overloaded — it is BOTH a classmethod
factory (returns a new Collision with enabled=True) AND an
instance attribute (bool). At runtime the instance attribute set
in __init__ shadows the descriptor when accessed through an
instance. The duplicate name is a long-standing public-API quirk;
renaming the classmethod is a breaking change. The suppression on the
__init__ assignment below is the minimum required to keep mypy quiet
without altering the contract.
simulo.Collision(enabled: bool = True)enabled()
Section titled “enabled()”Collision.enabled() -> Collisionclassmethod
Create enabled collision properties.
Returns:
Collision with enabled=True
disabled()
Section titled “disabled()”Collision.disabled() -> Collisionclassmethod
Create disabled collision properties.
Returns:
Collision with enabled=False