Mesh rotation

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
Jake007
Posts: 16
Joined: Wed Jun 29, 2011 8:39 pm
Location: Slovenia

Mesh rotation

Post by Jake007 »

Hi!

Is it possible to calculate center of an imported mesh ( in my case .md3)?
I would like to rotate it in its center, but I need my origin point where the main mesh's point is, because of parenting.

Regards,
Jake
CuteAlien
Admin
Posts: 9983
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Mesh rotation

Post by CuteAlien »

You can maybe use the center of the boundingbox.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply