I was reading the Manual in order to find out how to keep an object above the terrain, even if the terrain is unleveled. The Manual doesn’t give a full working simple example. Can someone provide a small example of how to set it up?
you’r correct, collisions are not an easy subject.
still, things are like this:
-the roaming ralph examples works
-your modifications dont.
the only logical conclusion is: you did something wrong and therefore it broke.
i suggest you try to do less modification at a time so you can see which line you changed broke it.
Once again…I had an extra hard time with getting the Character to move along unleveled terrain, because the manual itself is just throwing data at you all over the place. I had to take pieces from one page and then move 3 or 4 pages ahead to get another piece of data, when that latter should of been in-line on page 1. What I’ve also learned in programming is, every programmer will have their own style. I got my Character to move along terrain with less code than that shown in the “Wondering Ralph” Tutorial. I figured the same thing could be achieved in less code. There’s only one issue left, but I believe that issue is there because I modeled a bad terrain for a Test terrian. Killing me.
bsemail, you could watch videotutorials, ones from disney. There is one for collision system in panda. Click on Documetation tab in panda3d site to see link…
Thanks but I solved it! I actually have my character walking over unlevel ground with less code.
The way I work is…if I get a clean understanding of the Functions involved and or maybe a good simple working example…I could pretty much write my own code to solve things.
The “Wondering Ralph” code to me was a little over done, I realized that when I first saw it. What “killed” me was, I didn’t know start Pos matter so much with the ColRay; and that was the final fix.
Size, as in the amount of space a model consumes, means nothing. But size, as in the number of polygons within a model, can mean a lot with collisions.