From 9a620fb2db2197919eac89e5f0ec5272ed034ca1 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Fri, 10 Jul 2015 17:20:05 -0400 Subject: [PATCH] Physicals shouldn't have a mass of 0 --- korman/exporter/physics.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/korman/exporter/physics.py b/korman/exporter/physics.py index e0e52c6..cd95698 100644 --- a/korman/exporter/physics.py +++ b/korman/exporter/physics.py @@ -74,6 +74,10 @@ class PhysicsConverter: simIface = self._mgr.add_object(pl=plSimulationInterface, bl=bo) physical = self._mgr.add_object(pl=plGenericPhysical, bl=bo, name=name) + # libHSPlasma's default mass is evil. The issue is that CWE will only do PhysAnim + # aka non dynamic animated physicals if the mass != 0. The user can override this. + physical.mass = 1.0 + simIface.physical = physical.key physical.object = so.key physical.sceneNode = self._mgr.get_scene_node(bl=bo)