Im trying to compile a newton exemple but i got an error like this:
here is the function with the error:irr::core::CMatrix4<T>::M' : cannot access private member declared in class 'irr::core::CMatrix4<T>
Code: Select all
void setMeshTransformEvent(const NewtonBody* body, const float* matrix)
{
// copy the matrix into an irrlicht matrix4
matrix4 mat;
memcpy(mat.M, matrix, sizeof(float)*16);
// Retrieve the user data attached to the newton body
ISceneNode *tmp = ((NewtonCube *)NewtonBodyGetUserData(body))->node;
if (tmp)
{
// Position the node
tmp->setPosition(mat.getTranslation());
tmp->setRotation(mat.getRotationDegrees());
}
}Thanx