def Release(self): '''Changes the state of any non permanently fixed components to non-fixed.''' for name in self.fixed: MiroAPI.SetBodyFixed(self.components[name].GetBody(), False) self.fixed = []
def Fixate(self, name, permanent=False): ''' Locks a component in place. Component is then set loose upon calling Release on the modulem, unless True is passed for permanent fixation.''' if name in self.components: MiroAPI.SetBodyFixed(self.components[name].GetBody()) if not permanent: self.fixed.append(name)