From f3b2cd59e73905cfb2293dd93251fafe741e04e8 Mon Sep 17 00:00:00 2001 From: Joseph Davies Date: Sun, 29 Oct 2017 11:04:25 -0700 Subject: [PATCH] Use existing collision bounds type for ladder region if one is set. --- korman/properties/modifiers/avatar.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/korman/properties/modifiers/avatar.py b/korman/properties/modifiers/avatar.py index 1803393..e854ebf 100644 --- a/korman/properties/modifiers/avatar.py +++ b/korman/properties/modifiers/avatar.py @@ -73,11 +73,10 @@ class PlasmaLadderModifier(PlasmaModifierProperties): # Generate the detector's physical bounds 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) physical.memberGroup = plSimDefs.kGroupDetector physical.reportGroup |= 1 << plSimDefs.kGroupAvatar - physical.boundsType = plSimDefs.kHullBounds @property def requires_actor(self):