I want to draw a 3d line on the screen to debug smt. but driver->draw3DLine command draws my line in wrong place. I have two meshes which both are moving objects. And draw line always has an offset of last object center:
Code: Select all
driver->draw3DLine(core::vector3df(0,0,0), core::vector3df(xAxis.z(), xAxis.y(), xAxis.x()), video::SColor(255, 0, 0, 255));