Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions korman/exporter/physics.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ def generate_physical(self, bo, so, **kwargs):
physical.mass = mod.mass
_set_phys_prop(plSimulationInterface.kStartInactive, simIface, physical,
value=mod.start_asleep)
_set_phys_prop(plSimulationInterface.kAvAnimPushable, simIface, physical,
value=mod.pushable)
elif not mod.avatar_blocker:
physical.memberGroup = plSimDefs.kGroupLOSOnly
else:
Expand Down
1 change: 1 addition & 0 deletions korman/properties/modifiers/physics.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class PlasmaCollider(PlasmaModifierProperties):
dynamic = BoolProperty(name="Dynamic", description="Object can be influenced by other objects (ie is kickable)", default=False)
mass = FloatProperty(name="Mass", description="Mass of object in pounds", min=0.0, default=1.0)
start_asleep = BoolProperty(name="Start Asleep", description="Object is not active until influenced by another object", default=False)
pushable = BoolProperty(name="Pushable", description="Object can be pushed by the avatar (with pushing animation)", default=False)

def export(self, exporter, bo, so):
# All modifier properties are examined by this little stinker...
Expand Down
3 changes: 3 additions & 0 deletions korman/ui/modifiers/physics.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ def collision(modifier, layout, context):
row = col.row()
row.active = modifier.dynamic
row.prop(modifier, "start_asleep")
row = col.row()
row.active = modifier.dynamic
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
row.active = modifier.dynamic

row.prop(modifier, "pushable")

col = split.column()
col.active = modifier.dynamic
Expand Down