Newton
-
- Posts: 10
- Joined: Thu Mar 29, 2007 3:13 pm
- Location: Poland
Newton
I want use Newton libray in Irrlicht? Is it posible? And if is, haw to do it?
this really shouldnt be in the advanced help section. unless you have a problem specifically relating to newton. anywho to answer your question YES it is possible to use newton with irrlicht thats what it was made for . lol. theres a tutorial in the tutorial section on how to set it up. it was written for an older version of Irrlicht so you might need to change a few things get back to me when you run into any errors and i'll post some of the code fixes that i had to do.
-
- Posts: 10
- Joined: Thu Mar 29, 2007 3:13 pm
- Location: Poland
its almost similar to the code in tutorial but yoy have to do some changes aswell. lets look at the changelog.
also better download example from http://irrlicht.sourceforge.net/tut_newton.html and dont look to the tutrial in web page. it has so many errors. i remember that i fixed part of mesh triangles loading. it is easy actualy, i think you will get over this. maybe in downloaded source its not bugged, i dont remember
it looks that where is uset someMatrix.M[x] we should remove .M and it should look like someMatrix[x]. Easy peasy- matrix4 speed enhancement, testing for identity before multiply. faster check for identity
for the positive case using an additional boolean flag.
The internal array M is now private, changing the API. Use mat[x] instead of mat.M[x].
The pointer to M is acquired by mat.pointer(), some methods take a matrix4 reference
instead of a f32*.
also better download example from http://irrlicht.sourceforge.net/tut_newton.html and dont look to the tutrial in web page. it has so many errors. i remember that i fixed part of mesh triangles loading. it is easy actualy, i think you will get over this. maybe in downloaded source its not bugged, i dont remember
-
- Posts: 10
- Joined: Thu Mar 29, 2007 3:13 pm
- Location: Poland
Thanks
Ok, thanks, but where i can download your working example?
i was waiting for you to reply .
http://www.divshare.com/download/336006-3d6
the exe file is in tactile/OOPGameStruct
http://www.divshare.com/download/336006-3d6
the exe file is in tactile/OOPGameStruct
-
- Posts: 10
- Joined: Thu Mar 29, 2007 3:13 pm
- Location: Poland
-
- Posts: 10
- Joined: Thu Mar 29, 2007 3:13 pm
- Location: Poland
I done it
Ok, I done it . Big THANKS for yours help.