Happy-Howard
17-04-2008 08:32:52
When using EntityInformer to create a BoxGeometry the position of the geom is set using the associated nodes local position. This only works if the nodes local position equals it's global. Is there a good reason the code is written this way instead of using
The code currently looks like this:
_node->getWorldPosition();
_node->getWorldOrientation();
The code currently looks like this:
BoxGeometry* EntityInformer::createSingleStaticBox(World *world, Space* space)
{
BoxGeometry* geom = new BoxGeometry(getSize(), world, space);
geom->setPosition(_node->getPosition());
geom->setOrientation(_node->getOrientation());
return geom;
}