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!
Show path of moving scenenode
Re: Show path of moving scenenode
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
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: Show path of moving scenenode
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.)
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.)
Re: Show path of moving scenenode
@ 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
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm