Page 1 of 1

Newton tutorial not working (private datamember)

Posted: Fri Aug 24, 2007 9:25 pm
by scarface
I can't compile the code written in the following link:
http://walaber.com/newton_wiki/index.ph ... wton_start

The error I get is that the core::matrix4 mat is private:

Code: Select all

NewtonGetEulerAngle ( &mat.M[0], &euler.X );
I tryed the following code, no error, but the physics don't work (no movement), the planet should rotate.

Code: Select all

NewtonGetEulerAngle ( &mat.getTransposed() [0], &euler.X );
Thanks by advance.

Posted: Fri Aug 24, 2007 9:29 pm
by webnoob
EDIT:: Oops, different tutorial

Posted: Sat Aug 25, 2007 10:31 am
by belfegor

Code: Select all

mat.pointer()

Posted: Sat Aug 25, 2007 4:20 pm
by scarface
Ok thanks ;), the sources on the link above and the Newton tutorial on the official site should also change this way.