Climbing a Tree

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
klikmaster
Posts: 40
Joined: Mon Sep 11, 2006 1:06 pm

Climbing a Tree

Post by klikmaster »

Hello all.

I was wondering how to go about making my character climb up a tree. It would involve pressing up to make him climb up, and down to make him climb down. But the tree is not straight, it is bendy, so he would need to be able to follow a curved path.

What is the best way to go about this?

Thanks in advance.
~IRRLICHT ROX MY SOX~
fukuda
Posts: 23
Joined: Mon May 14, 2007 6:32 pm
Location: Barcelona, Spain

Post by fukuda »

It's only an idea (I don't think it's the best at all):

You can make hidden geometry (transparent walls around the path of the character) and set them to collide against the camera or model, this will force the player to follow the path even if it's bendy.
klikmaster
Posts: 40
Joined: Mon Sep 11, 2006 1:06 pm

Post by klikmaster »

Hmm, that wouldn't be a good way of doing it. It would be best if I could make the character move along an exact path.
~IRRLICHT ROX MY SOX~
arras
Posts: 1622
Joined: Mon Apr 05, 2004 8:35 am
Location: Slovakia
Contact:

Post by arras »

Create nodes, connect them, then move your character along those connections from one node to other. Similar to pathfinding. By nodes I mean abstract nodes not Irrlicht scene nodes.
klikmaster
Posts: 40
Joined: Mon Sep 11, 2006 1:06 pm

Post by klikmaster »

Ok, thanks :D

I'm going to try using an array of 3D points for the character to follow.
~IRRLICHT ROX MY SOX~
Post Reply