GetAbsolutePosition doesn't work for mesh
GetAbsolutePosition doesn't work for mesh
I parented my mesh object to an empty object and called getAbsolutePosition (and forced an update prior) and it still says that its position is at 0,0,0 (should not be because the empty is offset). Is this a known issue and how should I get around this? Do I need to update the positions of the parent empty too?
Re: GetAbsolutePosition doesn't work for mesh
It's an old Irrlicht optimization. Absolute positions are usually only updated during rendering (or in OnAnimate to be exact which is called in SceneManager::drawAll). If you need the absolute position before that you have to manually call updateAbsolutePosition() on your node first.
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