Hi all! I’m just getting started with Panda3D and I’m trying to modify the Roaming Ralph sample to randomly place 10 pandas in the world.
I can randomly place the pandas but they end up inside the terrain.
#Creates 10 Random Pandas with collision spheres
self.panda = []
self.pandaColNpa = []
for i in range(10):
self.panda.append( Actor("models/panda-model",
{"walk":"models/panda-walk"}))
self.panda[i].reparentTo(render)
self.panda[i].setScale(.001)
self.panda[i].setPos(random.uniform(-40, 60), random.uniform(-100, 100), 0)
I’ve been looking for awhile now and I can’t seem to find a way to set the Z coordinate so that is attaches the node to the uneven terain.
Any help would be appreciated. Thanks!