Page 1 of 1

rotating a sprite?

Posted: Wed Nov 12, 2003 9:05 am
by noone_really
anyone know how to rotate a billboard using the engine? i want to create the effect of spinning, and ->setRotation() isn't working...thanks!

Posted: Wed Nov 12, 2003 12:04 pm
by elvencode
i think that a billboad is a surface that stands exactly always on front of your direction view, so you cant rotate it because so it's not again a billboard :wink:

rotate

Posted: Wed Nov 12, 2003 6:34 pm
by roninmagus
I believe he is talking about rotating the billboard perpindicular to the camera.. so it is still facing the camera.

Posted: Wed Nov 12, 2003 9:36 pm
by Isometric God
You could make your billboard sprite a child to a dummy scenenode. Rotating the dummy parent should rotate the child too. Well, it's not the ideal way to go, because this seems to be a bug in the engine, but it works 8)