[SOLVED] Why 3D lines follow a SceneNode?

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
mant
Posts: 125
Joined: Sun Jan 27, 2013 3:38 pm

[SOLVED] Why 3D lines follow a SceneNode?

Post by mant »

I'm using Irrlicht with Bullet 2.82 for simulation. As you can see in the video when I change the position of the SceneNode, the grid follows it, even when I start the simulation.
Last edited by mant on Sun Jul 30, 2017 7:41 pm, edited 3 times in total.
mant
Posts: 125
Joined: Sun Jan 27, 2013 3:38 pm

Re: Strange: Why 3D lines follow a SceneNode?

Post by mant »

Solved. I forgot to do this before drawing the lines:

Code: Select all

 
    irr::core::matrix4 mat;
    m_VideoDriver->setTransform(irr::video::ETS_WORLD, mat);
 
Post Reply