Browse Source

Fix non-avatar-blocking colliders

pull/8/head
Adam Johnson 10 years ago
parent
commit
32df8002cc
  1. 6
      korman/properties/modifiers/physics.py

6
korman/properties/modifiers/physics.py

@ -66,13 +66,13 @@ class PlasmaCollider(PlasmaModifierProperties):
physical.restitution = self.restitution physical.restitution = self.restitution
# Collision groups and such # Collision groups and such
if not self.avatar_blocker:
physical.collideGroup = plSimDefs.kGroupLOSOnly
if self.dynamic: if self.dynamic:
physical.memberGroup = plSimDefs.kGroupDynamic physical.memberGroup = plSimDefs.kGroupDynamic
physical.mass = self.mass physical.mass = self.mass
_set_phys_prop(plSimulationInterface.kStartInactive, simIface, physical, value=self.start_asleep) _set_phys_prop(plSimulationInterface.kStartInactive, simIface, physical, value=self.start_asleep)
elif not self.avatar_blocker:
# the UI is kind of misleading on this count. oh well.
physical.memberGroup = plSimDefs.kGroupLOSOnly
else: else:
physical.memberGroup = plSimDefs.kGroupStatic physical.memberGroup = plSimDefs.kGroupStatic

Loading…
Cancel
Save