mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
move walls down on crate model
This commit is contained in:
parent
c2c32a4c2f
commit
c68c6cfbe8
@ -24,10 +24,10 @@ class ModelEntity(BasicEntities.NodePathEntity):
|
||||
self.model.reparentTo(self)
|
||||
|
||||
# HACK SDN: special code for moving crate wall collisions down
|
||||
# Uniquify the collision name
|
||||
cNode = self.find("**/wall_collsion")
|
||||
if self.modelPath == "phase_9/models/cogHQ/woodCrateB":
|
||||
cNode = self.find("**/wall")
|
||||
if not cNode.isEmpty():
|
||||
cNode.setZ(-1.2)
|
||||
cNode.setZ(-.5)
|
||||
|
||||
def setModelPath(self, path):
|
||||
self.modelPath = path
|
||||
|
Loading…
x
Reference in New Issue
Block a user