Very Simple Question!!!
Very Simple Question!!!
How can I turn a mesh to face another direction while staying still? When I use setRotation the mesh just goes in a (wide) circle.
Umm, don't look at me that way. I'M not the dead one here.
--The One True Marshmellow
--The One True Marshmellow
That means ur mesh is not designed around the correct middle of the model.
So bringing it closer or exactly at the middle of the axises there are will solve the problem as it rotates closer around. That means a smaller circle and eventually no circle, wich means it could rotate around his exact center.
good luck, I hope I've helped you.
So bringing it closer or exactly at the middle of the axises there are will solve the problem as it rotates closer around. That means a smaller circle and eventually no circle, wich means it could rotate around his exact center.
good luck, I hope I've helped you.
Current Project: Don Salvatore's Mafia
Genre: 3D Shooter \ RTS
Programming Language: VB .NET
Engine: Irrlicht 11 [.NET Wrapper]
Genre: 3D Shooter \ RTS
Programming Language: VB .NET
Engine: Irrlicht 11 [.NET Wrapper]
Well open the mesh in the application you've used to design it, like milkshape etc.. and then move it towards the three lines in the middle of the field as close as you can.
Current Project: Don Salvatore's Mafia
Genre: 3D Shooter \ RTS
Programming Language: VB .NET
Engine: Irrlicht 11 [.NET Wrapper]
Genre: 3D Shooter \ RTS
Programming Language: VB .NET
Engine: Irrlicht 11 [.NET Wrapper]
Nope :p... its an boundingbox problem so maybe you can alter those value's within irrlicht but why add extra code when it can be solved much easier.
So lets say this is you object:
__________
|..............|
|./............|
|......o......|
|..............|
|_________|
where the "\" is ur mesh and the "o" is the center, and the box is... the boundingbox
Than there would occur a much bigger rotation-circle as in the following situtation:
________
|..........|
|....\.....|
|______|
Where your mesh is almost the center itself
Note that the dots "." are just there to keep it a box cuz the forum deletes every space that is typed behind a space. And posting a bitmap is too much work
But im sure you'll get it mate!
So lets say this is you object:
__________
|..............|
|./............|
|......o......|
|..............|
|_________|
where the "\" is ur mesh and the "o" is the center, and the box is... the boundingbox
________
|..........|
|....\.....|
|______|
Where your mesh is almost the center itself
Note that the dots "." are just there to keep it a box cuz the forum deletes every space that is typed behind a space. And posting a bitmap is too much work
Current Project: Don Salvatore's Mafia
Genre: 3D Shooter \ RTS
Programming Language: VB .NET
Engine: Irrlicht 11 [.NET Wrapper]
Genre: 3D Shooter \ RTS
Programming Language: VB .NET
Engine: Irrlicht 11 [.NET Wrapper]
putting things in the code UBB tags, makes it fixed spacing, and takes spaces into account...for the future 
Code: Select all
/-----\
| |
| o |
| |
\-----/