22 #ifndef __NewotnClass_3HL6356GYL459020__ 23 #define __NewotnClass_3HL6356GYL459020__ 25 #include "NewtonStdAfx.h" 30 #define MAX_TIMESTEP (1.0f / 60.0f) 31 #define MIN_TIMESTEP (1.0f / 1000.0f) 39 void DestroyBodies(
Newton &world);
46 void DestroyJoints(
Newton &world);
55 DG_CLASS_ALLOCATOR(allocator)
60 void DestroyBody(
dgBody *body);
63 void UpdatePhysics(dgFloat32 timestep);
64 static void *DefaultAllocMemory(dgInt32 size);
65 static void DefaultFreeMemory(
void *ptr, dgInt32 size);
67 dgFloat32 g_maxTimeStep;
70 NewtonDestroyWorld m_destructor;
79 NewtonUserBilateralCallBack callback, NewtonUserBilateralGetInfoCallBack getInfo,
85 void AddAngularRowJacobian(
const dgVector &dir, dgFloat32 relAngle);
86 void AddGeneralRowJacobian(
const dgFloat32 *jacobian0,
const dgFloat32 *jacobian1);
89 dgFloat32 GetRowForce(dgInt32 row)
const;
90 void SetHighFriction(dgFloat32 friction);
91 void SetLowerFriction(dgFloat32 friction);
92 void SetRowStiffness(dgFloat32 stiffness);
93 void SetAcceleration(dgFloat32 acceleration);
94 void SetSpringDamperAcceleration(dgFloat32 springK, dgFloat32 springD);
97 void SetUpdateFeedbackFunction(NewtonUserBilateralCallBack getFeedback);
102 NewtonUserBilateralCallBack m_jacobianFnt;
103 NewtonUserBilateralGetInfoCallBack m_getInfoCallback;
106 dgFloat32 *m_forceArray;
109 dgFloat32 m_lastJointAngle;
Definition: NewtonClass.h:43
Definition: NewtonClass.h:50
Definition: dgVector.h:86
Definition: NewtonClass.h:36
Definition: dgConstraint.h:137
Definition: dgConstraint.h:48
Definition: dgUserConstraint.h:30
Graphics::Surface * scale(const Graphics::Surface &srcImage, int xSize, int ySize)
Definition: NewtonClass.h:76
Definition: dgMemory.h:80
Definition: dgConstraint.h:169
Definition: dgWorld.h:118