mechanism.py 374B

123456789101112
  1. # coding: utf-8
  2. from synergine2.simulation import SubjectMechanism
  3. from synergine2_xyz.xyz import ProximityMixin
  4. class ProximitySubjectMechanism(ProximityMixin, SubjectMechanism):
  5. def run(self):
  6. return self.get_for_position(
  7. position=self.subject.position,
  8. simulation=self.simulation,
  9. exclude_subject=self.subject,
  10. )