예제 #1
0
void Node::getToWorld(Matrixr &result)
{
    if(getParent() != NULL)
    {
        getParent()->getToWorld(result);
    }
    else
    {
        result.setIdentity();
    }

    if(getCore() != NULL)
        getCore()->accumulateMatrix(result);
}
예제 #2
0
void Node::getWorldVolume(BoxVolume &result)
{
    Matrixr m;

    if(getParent() != NULL)
    {
        getParent()->getToWorld(m);
    }
    else
    {
        m.setIdentity();
    }

    updateVolume();

    result = getVolume();
    result.transform(m);
}