mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
more crate hacks
This commit is contained in:
parent
14338e4772
commit
a7941fc838
@ -25,9 +25,15 @@ class ModelEntity(BasicEntities.NodePathEntity):
|
|||||||
|
|
||||||
# HACK SDN: special code for moving crate wall collisions down
|
# HACK SDN: special code for moving crate wall collisions down
|
||||||
if self.modelPath == "phase_9/models/cogHQ/woodCrateB.bam":
|
if self.modelPath == "phase_9/models/cogHQ/woodCrateB.bam":
|
||||||
|
# move walls down
|
||||||
cNode = self.find("**/wall")
|
cNode = self.find("**/wall")
|
||||||
if not cNode.isEmpty():
|
cNode.setZ(-1.25)
|
||||||
cNode.setZ(-.5)
|
# duplicate the floor and move it down to crate a
|
||||||
|
# catch effect for low-hopped toons
|
||||||
|
colNode = self.find("**/collision")
|
||||||
|
floor = colNode.find("**/floor")
|
||||||
|
floor2 = floor.copyTo(colNode)
|
||||||
|
floor2.setZ(-1.25)
|
||||||
|
|
||||||
def setModelPath(self, path):
|
def setModelPath(self, path):
|
||||||
self.modelPath = path
|
self.modelPath = path
|
||||||
|
Loading…
x
Reference in New Issue
Block a user