problem with Irrlicht/Newton cube exmple please help.
I compile it with irrlicht 1.3.1 & newton 1.53.
It run and load the scene,but didnot load cubes why.
________
Suzuki gt750
problem with Irrlicht/Newton cube exmple please help.
problem with Irrlicht/Newton cube exmple please help.
Last edited by AlaaBR9 on Fri Feb 25, 2011 2:42 am, edited 1 time in total.
-
- Posts: 170
- Joined: Sun Jul 01, 2007 11:41 pm
- Location: Manchester, UK
-
- Posts: 170
- Joined: Sun Jul 01, 2007 11:41 pm
- Location: Manchester, UK
The cosole window didnot tell any thing wrong.
The cosole window didnot tell any thing wrong.
But..
first there is a problem with private member of matrix4 "M"
so i replace it with pointer() like follow:
1.old:matrix4 mat;
mat.setTranslation(loc);
NewtonBodySetMatrix(tmp->body,&mat.M[0]);
new:matrix4 mat;
mat.setTranslation(loc);
NewtonBodySetMatrix(tmp->body, mat.pointer());
2.old:matrix4 mat;
memcpy(mat.M, matrix, sizeof(float)*16);
new:matrix4 mat;
memcpy(mat.pointer(), matrix, sizeof(float)*16);
Is this changes wrong..
________
Ford ranger specifications
But..
first there is a problem with private member of matrix4 "M"
so i replace it with pointer() like follow:
1.old:matrix4 mat;
mat.setTranslation(loc);
NewtonBodySetMatrix(tmp->body,&mat.M[0]);
new:matrix4 mat;
mat.setTranslation(loc);
NewtonBodySetMatrix(tmp->body, mat.pointer());
2.old:matrix4 mat;
memcpy(mat.M, matrix, sizeof(float)*16);
new:matrix4 mat;
memcpy(mat.pointer(), matrix, sizeof(float)*16);
Is this changes wrong..
________
Ford ranger specifications