Getting size of node (for OgreOde::BoxGeometry)

Problems building or running the engine, queries about how to use features etc.
Post Reply
User avatar
charlie
Greenskin
Posts: 146
Joined: Mon Nov 15, 2004 1:43 pm
Location: Austria
Contact:

Getting size of node (for OgreOde::BoxGeometry)

Post by charlie »

To create a geometry for ogreode I need the size of a node (in my case I want to create a OgreOde::BoxGeometry).
But what is the easiest way of getting it, when I only know the meshfile (the scale is no problem since I can get it form the node)? is it possible to get the actual size somehow?
User avatar
monster
OGRE Community Helper
OGRE Community Helper
Posts: 1098
Joined: Mon Sep 22, 2003 2:40 am
Location: Melbourne, Australia
Contact:

Post by monster »

Have a look at the MeshInformer stuff.
What springs to mind immediately is;

Code: Select all

OgreOde::MeshInformer::getSize(Mesh* mesh);
But there are other methods that will automatically create dynamic or static boxes for you, based on meshes.
I think the demos show this.
User avatar
charlie
Greenskin
Posts: 146
Joined: Mon Nov 15, 2004 1:43 pm
Location: Austria
Contact:

Post by charlie »

Must have missed it. Sorry....

Thanks for the hint.
Post Reply