Browse Source

Use existing collision bounds type for ladder region if one is set.

pull/64/head
Joseph Davies 7 years ago
parent
commit
f3b2cd59e7
Signed by untrusted user: Deledrius
GPG Key ID: 28ACC6E8D2B24B8A
  1. 3
      korman/properties/modifiers/avatar.py

3
korman/properties/modifiers/avatar.py

@ -73,11 +73,10 @@ class PlasmaLadderModifier(PlasmaModifierProperties):
# Generate the detector's physical bounds # Generate the detector's physical bounds
det_name = "{}_LadderDetector".format(self.id_data.name) det_name = "{}_LadderDetector".format(self.id_data.name)
bounds = bo.plasma_modifiers.collision.bounds bounds = "hull" if not bo.plasma_modifiers.collision.enabled else bo.plasma_modifiers.collision.bounds
simIface, physical = exporter.physics.generate_physical(bo, so, bounds, det_name) simIface, physical = exporter.physics.generate_physical(bo, so, bounds, det_name)
physical.memberGroup = plSimDefs.kGroupDetector physical.memberGroup = plSimDefs.kGroupDetector
physical.reportGroup |= 1 << plSimDefs.kGroupAvatar physical.reportGroup |= 1 << plSimDefs.kGroupAvatar
physical.boundsType = plSimDefs.kHullBounds
@property @property
def requires_actor(self): def requires_actor(self):

Loading…
Cancel
Save