|
|
@ -165,7 +165,6 @@ class PhysicsConverter: |
|
|
|
physical.friction = mod.friction |
|
|
|
physical.friction = mod.friction |
|
|
|
physical.restitution = mod.restitution |
|
|
|
physical.restitution = mod.restitution |
|
|
|
|
|
|
|
|
|
|
|
if not mod.dynamic_blocker: |
|
|
|
|
|
|
|
if mod.dynamic: |
|
|
|
if mod.dynamic: |
|
|
|
if ver <= pvPots: |
|
|
|
if ver <= pvPots: |
|
|
|
physical.collideGroup = (1 << plSimDefs.kGroupDynamic) | \ |
|
|
|
physical.collideGroup = (1 << plSimDefs.kGroupDynamic) | \ |
|
|
@ -174,7 +173,9 @@ class PhysicsConverter: |
|
|
|
physical.mass = mod.mass |
|
|
|
physical.mass = mod.mass |
|
|
|
_set_phys_prop(plSimulationInterface.kStartInactive, simIface, physical, |
|
|
|
_set_phys_prop(plSimulationInterface.kStartInactive, simIface, physical, |
|
|
|
value=mod.start_asleep) |
|
|
|
value=mod.start_asleep) |
|
|
|
elif not mod.avatar_blocker: |
|
|
|
elif mod.dynamic_blocker and not mod.avatar_blocker: |
|
|
|
|
|
|
|
physical.memberGroup = plSimDefs.kDynamicBlocker |
|
|
|
|
|
|
|
elif not mod.avatar_blocker and not mod.dynamic_blocker: |
|
|
|
physical.memberGroup = plSimDefs.kGroupLOSOnly |
|
|
|
physical.memberGroup = plSimDefs.kGroupLOSOnly |
|
|
|
else: |
|
|
|
else: |
|
|
|
physical.memberGroup = plSimDefs.kGroupStatic |
|
|
|
physical.memberGroup = plSimDefs.kGroupStatic |
|
|
@ -185,8 +186,6 @@ class PhysicsConverter: |
|
|
|
_set_phys_prop(plSimulationInterface.kCameraAvoidObject, simIface, physical) |
|
|
|
_set_phys_prop(plSimulationInterface.kCameraAvoidObject, simIface, physical) |
|
|
|
if mod.terrain: |
|
|
|
if mod.terrain: |
|
|
|
physical.LOSDBs |= plSimDefs.kLOSDBAvatarWalkable |
|
|
|
physical.LOSDBs |= plSimDefs.kLOSDBAvatarWalkable |
|
|
|
else: |
|
|
|
|
|
|
|
physical.memberGroup = plSimDefs.kDynamicBlocker |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Hacky? We'd like to share the simple surface descriptors(TM) as much as possible... |
|
|
|
# Hacky? We'd like to share the simple surface descriptors(TM) as much as possible... |
|
|
|
# This could result in a few orphaned PhysicalSndGroups, but I think that's preferable |
|
|
|
# This could result in a few orphaned PhysicalSndGroups, but I think that's preferable |
|
|
|