hello,everyone:
i have a trouble-the topic, i hope who one can help me out.
thank you!
i draw a wheel and want it to ratote around its axis, because i want to the whole car can run just look like. in opengl ,the function glRotatef(angle, 0, 0, 1) can do so, but how to do in irrlicht engine?
who can help me , thanks a lot.
How to make a model around the center of rotation of its own
-
- Admin
- Posts: 3590
- Joined: Mon Oct 09, 2006 9:36 am
- Location: Scotland - gonnae no slag aff mah Engleesh
- Contact:
Failed how? It crashed your program? The wheel didn't rotate at all? It rotated in an unexpected way?tswtn wrote:i did it as what you said ,but it failed.
It is the correct method, assuming that you have a wheel that's in its own node, and that its axis of rotation is through the X axis. If it's not, you'll have to tell us more about your problem.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way