def _set_property(self, prop_type: int, value: bool) -> None: current = sim.simGetObjectSpecialProperty(self._handle) current |= prop_type if not value: current -= prop_type sim.simSetObjectSpecialProperty(self._handle, current)
def _get_property(self, prop_type: int) -> bool: current = sim.simGetObjectSpecialProperty(self._handle) return current & prop_type