I’ve just posted a snippet of code on my blog to move a model around. It’s functional, but I had to use a bit of a workaround. Originally, I was setting a model’s position relative to itself using
and the same thing for the y coordinate. It was a model of a panda and, strangely, a positive y increment caused it to move not in the direction it was looking in, but in the direction of its back. I fixed it by adding an empty node for the actor, rotating the model 180 degrees and reparenting the model to the empty node.
Is this normal behaviour for a model? Or was there something wrong with my code? And is this an acceptable fix? You can find the snippet and a link to my BitBucket page on my blog (see signature - the entry is http://vincentnys.ulyssis.be/wordpress/?p=86).
My sincere newbie thanks