Simple collisions/responses for planes

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
jestermax
Posts: 17
Joined: Mon Feb 26, 2007 4:36 pm

Simple collisions/responses for planes

Post by jestermax »

Hey there, I've decided to give Irr another try (here's a screenshot from my last attempt: http://sourceforge.net/dbimage.php?id=115870 )

So I whipped up a simple floor and wall tiling system with some billboard sprites (rolled my own for more flexibility). I've been looking into some collision detection though. More specifically I've been wanting to use the collision response animator class, but I've been having a few hitches.

Here is what I have so far:
http://jestermax.googlepages.com/JS_Irr ... 2009_A.JPG

I wanted to get a few suggestions in case someone else has already completed this, but this is what I plan on doing.
Since I'm creating a separate hill mesh for each tile, I plan on using a separate triangle selector for each one and combining them in a meta selector.
The characters in my system are hill plane meshes as well, which are usually camera facing (but not always). So for each character object, I have a scene node which the plane is mounted to which allows them to be rotated upright, and that node is mounted to an entity node to allow scene placement.
I've done a bunch of tests but I must've done something wrong, however, to create a collision response animator could i use that outside entity node? or would it have to be the node the plane is directly mounted to? or would it even work?

Thanks for any help


Edit: So I implemented this and it works amazingly. The MetaTriangleSelector is brilliant.
If anybody has comments about it though, I'd still like to hear them.
Post Reply