Attachments experience movement delays, triggered randomly
Posted: Mon Jun 22, 2015 01:26
https://github.com/minetest/minetest/issues/2813
I found a weird and annoying issue with attachments. As much as I implemented the initial attachment code, I cannot figure out what is causing this and why. It might be an Irrlicht bug, although I'm inclined to suspect something Minetest side as well.
When an object is attached via obj:set_attach, there will be times when it follows its parent smoothly as it moves around, instead of instantly duplicating its position and rotation like it should. The problem is only triggered randomly too: Sometimes I would restart the game and it works fine, at other times there's the movement delay.
I only tried this by parenting a Lua entity to a bone on my player's model, then watching myself in 3rd person view as I moved around. Some of the objects are firmly attached to me, while others follow me slowly and it looks off... which does which is always random whenever I start the game.
I found a weird and annoying issue with attachments. As much as I implemented the initial attachment code, I cannot figure out what is causing this and why. It might be an Irrlicht bug, although I'm inclined to suspect something Minetest side as well.
When an object is attached via obj:set_attach, there will be times when it follows its parent smoothly as it moves around, instead of instantly duplicating its position and rotation like it should. The problem is only triggered randomly too: Sometimes I would restart the game and it works fine, at other times there's the movement delay.
I only tried this by parenting a Lua entity to a bone on my player's model, then watching myself in 3rd person view as I moved around. Some of the objects are firmly attached to me, while others follow me slowly and it looks off... which does which is always random whenever I start the game.