rotating a sprite?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
noone_really

rotating a sprite?

Post 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!
elvencode
Posts: 33
Joined: Thu Oct 02, 2003 11:10 am
Location: Italy
Contact:

Post 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:
roninmagus
Posts: 91
Joined: Fri Oct 31, 2003 5:03 am

rotate

Post by roninmagus »

I believe he is talking about rotating the billboard perpindicular to the camera.. so it is still facing the camera.
daveandrews.org - A Christian Programmer's Weblog | Dusty Engine - A Task Engine for Irrlicht
Isometric God
Posts: 69
Joined: Sun Oct 12, 2003 3:42 pm
Location: Germany

Post 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)
Post Reply