コード例 #1
0
 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)
コード例 #2
0
 def _get_property(self, prop_type: int) -> bool:
     current = sim.simGetObjectSpecialProperty(self._handle)
     return current & prop_type