I'm using Newton v1.5 and I set the callback for the body this way:
Code: Select all
NewtonBodySetForceAndTorqueCallback(body, newtonForceAndTorqueCallback);Code: Select all
void newtonForceAndTorqueCallback(const NewtonBody* body){
.
.
.
}Code: Select all
NewtonBodySetForceAndTorqueCallback(body, newtonForceAndTorqueCallback);Code: Select all
void newtonForceAndTorqueCallback(const NewtonBody* body){
.
.
.
}
Code: Select all
NewtonBodySetForceAndTorqueCallback(body,
(NewtonApplyForceAndTorque)callbackApplyGravity);
Code: Select all
int main()
{
if (bCodeDoesntWork)
{
int res = AttemptFix(this);
if (failed(res))
{
PullHair();
}
}
}
I had a look at that version...qwertyCoder wrote:Im using Newton for windows 2.04, no idea what earlier versions look like, maybe I should be using said earlier version?

Code: Select all
int main()
{
if (bCodeDoesntWork)
{
int res = AttemptFix(this);
if (failed(res))
{
PullHair();
}
}
}
well, that's entirely up to you...qwertyCoder wrote:Should I download and use 1.53 or continue to use the 2.04 beta?
