Show path of moving scenenode

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
kmfrick98
Posts: 1
Joined: Mon Jun 12, 2017 4:31 pm

Show path of moving scenenode

Post by kmfrick98 »

Hello Irrlicht forum!

I'm writing a small physics simulation app using Irrlicht and I would like to know if you can make a SceneNode draw the path it's traversing.
For example, if it's moving in a circular path, it would slowly draw a circle and continue to move along the circle it has drawn after it has returned to the starting point. If it's moving following a helix path, it would draw a helix as it moves.

Is it possible to do so?

Thanks in advance! :)
CuteAlien
Admin
Posts: 9628
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Show path of moving scenenode

Post by CuteAlien »

Maybe remember positions each frame in some arrays. And then do line-drawing between those positions.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Foaly
Posts: 142
Joined: Tue Apr 15, 2014 8:45 am
Location: Germany

Re: Show path of moving scenenode

Post by Foaly »

I had written a scene node which allows you to automatically draw such a path by attaching it to another node.
It was supposed to be included in the engine, but that never happened. :(

There's the thread about it: http://irrlicht.sourceforge.net/forum/v ... =2&t=50765
You can still use it, if you compile the engine yourself with the patch applied.
(However the download link for the patch seems broken, but if you're interested I can fix that on the weekend.)
CuteAlien
Admin
Posts: 9628
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Show path of moving scenenode

Post by CuteAlien »

@ Foaly: Yeah, sorry - I gave up on that one for now. Maybe if I ever manage to release Irrlicht 1.9 I'll think about adding features from others again. But still got enough bugs left on my plate for 1.9 to keep me busy for a long, long time. And constantly getting more - my todo list back then was smaller than it is today :-(
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply