so i get it work with newton like ode using forces!
but i modified the callback-function this way to add forces, i know thats is not nice
void onforceandtorque(NewtonBody* body)
{
float mass, ixx, iyy, izz;
NewtonBodyGetMassMatrix(body, &mass, &ixx, &iyy, &izz);
ENTITY* entity = NewtonBodyGetUserData(body);
VECTOR force;
NewtonBodySetForce(body, vectorf(0, 0, - 50 * mass));
force.x = entity.skill20;
force.y = entity.skill21;
force.z = entity.skill22;
NewtonBodyAddForce(body, vectorf(force.x, force.y, force.z));
entity.skill20 = 0;
entity.skill21 = 0;
entity.skill22 = 0;
}
now i am using 3 skills to save forces applied to an newtonobject, but it isn't the best way i like to have...
so does anyone know a better way to solf this problem???
[EDIT]
How can i apply forces out of the center / origin of a physic obect?
I want to drag them with help of the mouse!