move walls down on crate model

This commit is contained in:
Samir Naik 2003-11-24 22:07:42 +00:00
parent c2c32a4c2f
commit c68c6cfbe8

View File

@ -24,10 +24,10 @@ class ModelEntity(BasicEntities.NodePathEntity):
self.model.reparentTo(self) self.model.reparentTo(self)
# HACK SDN: special code for moving crate wall collisions down # HACK SDN: special code for moving crate wall collisions down
# Uniquify the collision name if self.modelPath == "phase_9/models/cogHQ/woodCrateB":
cNode = self.find("**/wall_collsion") cNode = self.find("**/wall")
if not cNode.isEmpty(): if not cNode.isEmpty():
cNode.setZ(-1.2) cNode.setZ(-.5)
def setModelPath(self, path): def setModelPath(self, path):
self.modelPath = path self.modelPath = path