21 #include "private/phyobjectprivate.h"
22 #include "private/worldprivate.h"
31 w->pushObject(
this );
37 #ifdef WORLDSIM_USE_NEWTON
43 #ifdef WORLDSIM_USE_NEWTON
44 NewtonCollision* c = NewtonCreateBox( worldpriv->world, sidex, sidey, sidez, 1, NULL );
46 priv->body = NewtonCreateBody( worldpriv->world, c, &initialTransformationMatrix[0][0] );
48 NewtonBodySetAutoSleep(
priv->body, 0 );
50 NewtonBodySetUserData(
priv->body,
this );
51 NewtonBodySetLinearDamping(
priv->body, 0.0 );
53 NewtonBodySetAngularDamping(
priv->body, &zero[0] );
54 NewtonBodySetAutoSleep(
priv->body, 0 );
55 NewtonBodySetFreezeState(
priv->body, 0 );
57 NewtonBodySetTransformCallback(
priv->body, (PhyObjectPrivate::setTransformHandler) );
58 NewtonBodySetForceAndTorqueCallback(
priv->body, (PhyObjectPrivate::applyForceAndTorqueHandler) );