I wanted to edit the level model using 3ds Max. Just added simple non-textured single-sided plane and named it Ground and exported as model. After that, I opened my exported model with Notepad and added { Polyset keep descend } after “Random stuff”. And in game I kept falling through it. Here’s the .egg code :
Your code didn’t work just now since the code you copied called for Cube as the Into name.
highestZ = -100
for i in range(self.manGroundHandler.getNumEntries()):
entry = self.manGroundHandler.getEntry(i)
if entry.getIntoNode().getName() == "Cube":
z = entry.getSurfacePoint(render).getZ()
if z > highestZ:
highestZ = z
I was unsure if this was the cause since I am new to Panda myself but if it works then I feel that that is the solution.