MADEAPPS / newton-dynamics

Newton Dynamics is an integrated solution for real time simulation of physics environments.
http://www.newtondynamics.com
Other
936 stars 182 forks source link

Move Some Implementations from ndShapeCompount.h to ndShapeCompount.cpp #267

Closed TrevorCash closed 2 years ago

TrevorCash commented 2 years ago

Did this because compiler couldnt resolve ndShapeInstance because of the new statement:

inline ndShapeCompound::ndNodeBase::ndNodeBase(ndShapeInstance* const instance)
    :ndClassAlloc()
    , m_type(m_leaf)
    , m_left(nullptr)
    , m_right(nullptr)
    , m_parent(nullptr)
    , m_myNode(nullptr)
    , m_shapeInstance(new ndShapeInstance(*instance))
{
    CalculateAABB();
}
JulioJerez commented 2 years ago

merged, yes that's a good action. thanks