I managed to get this fixed by changing the scale of my Level in A7.
I had a scale of 670 quants being 62cm which made my quant2meter factor extremely small. This probably resulted in inaccuracies and caused the collision problem.
Currently I'm trying to get a hinge accelerated on key press and stop it at a certain max/min angle. This does not work yet properly and I'm trying to get it done. While trying around with the Jointlibrary I found out that the NewtonUserJoint typedef is not yet added to your import files.
Re: Newton 2 wrapper
[Re: FBL]
#289546 09/13/0922:0009/13/0922:00
yep, i got latest v 9 beta of Newton and waiting for beta 10... There may be a CharacterController and RaycastCar... also, i'll look into NewtonUserJoint
1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy
Instead of having to define the quant2meter and meter2quant, and having to define the newtonworld struct instance I'd like to see a proper get/set function interface.
Meaning newtonworld is defined inside the wrapper files, and I have some sort of Newton_getWorld() function to return the pointer. Same goes for the conversion factors, maybe a function like Newton_setMetertoquant() or so...
I'm currently trying to get some proper hinge setup working. If I end up with something useful I maybe post the code here and you can decide whether you want to take it over to the wrapper or not.
Depends on how generic it will get...
Also maybe it makes sense to dd a function which generates an ANGLE from a matrix and converts an ANGLE back to a matrix, without being tied to an entity. Currently I have the problem that Newton expects a quaternion, I still have to look up how it is defined and how this has to be set in order to get the correct behaviour.
Re: Newton 2 wrapper
[Re: FBL]
#289648 09/14/0916:1709/14/0916:17