(self)
return self._perturb.body_id if self._perturb is not None else -1
Returns the id of the selected body, or -1 if none is selected.
Returns the id of the selected body, or -1 if none is selected.
Returns the id of the selected body or - 1 if none is selected .
def selected_body_id(self):
    """Returns the id of the selected body, or -1 if none is selected."""
    return self._perturb.body_id if self._perturb is not None else -1
def selected_body_id ( self ) : return self . _perturb . body_id if self . _perturb is not None else - 1