diff --git a/sdk/dgNewton/Newton.cpp b/sdk/dgNewton/Newton.cpp index 60605d8bb2..0d7c045386 100644 --- a/sdk/dgNewton/Newton.cpp +++ b/sdk/dgNewton/Newton.cpp @@ -185,11 +185,11 @@ void NewtonDestroy(const NewtonWorld* const newtonWorld) delete allocator; } -void NewtonSetPosUpdateCallback(const NewtonWorld* const newtonWorld, NewtonPostUpdateCallback callback) +void NewtonSetPostUpdateCallback(const NewtonWorld* const newtonWorld, NewtonPostUpdateCallback callback) { TRACE_FUNCTION(__FUNCTION__); Newton* const world = (Newton *) newtonWorld; - world->SetPosUpdateCallback(world, (dgPostUpdateCallback) callback); + world->SetPostUpdateCallback(world, (dgPostUpdateCallback) callback); } @@ -1521,7 +1521,7 @@ void NewtonMaterialSetContactGenerationCallback (const NewtonWorld* const newton @return Nothing. - When the AABB extend of the collision geometry of two bodies overlap, Newton collision system retrieves the material + When the AABB extents of the collision geometry of two bodies overlap, the Newton collision system retrieves the material interaction that defines the behavior between the pair of bodies. The material interaction is collected from a database of materials, indexed by the material gruopID assigned to the bodies. If the material is tagged as non collidable, then no action is taken and the simulation continues. diff --git a/sdk/dgNewton/Newton.h b/sdk/dgNewton/Newton.h index 3f5b3cc77e..2910cc464d 100644 --- a/sdk/dgNewton/Newton.h +++ b/sdk/dgNewton/Newton.h @@ -444,7 +444,7 @@ extern "C" { NEWTON_API void NewtonDestroy (const NewtonWorld* const newtonWorld); NEWTON_API void NewtonDestroyAllBodies (const NewtonWorld* const newtonWorld); - NEWTON_API void NewtonSetPosUpdateCallback (const NewtonWorld* const newtonWorld, NewtonPostUpdateCallback callback); + NEWTON_API void NewtonSetPostUpdateCallback (const NewtonWorld* const newtonWorld, NewtonPostUpdateCallback callback); NEWTON_API void* NewtonAlloc (int sizeInBytes); NEWTON_API void NewtonFree (void* const ptr); diff --git a/sdk/dgPhysics/dgWorld.h b/sdk/dgPhysics/dgWorld.h index 414f99933e..fa9c2ab588 100644 --- a/sdk/dgPhysics/dgWorld.h +++ b/sdk/dgPhysics/dgWorld.h @@ -244,7 +244,7 @@ class dgWorld dgInt32 GetSolverMode() const; void SetSolverMode (dgInt32 mode); - void SetPosUpdateCallback (const dgWorld* const newtonWorld, dgPostUpdateCallback callback); + void SetPostUpdateCallback (const dgWorld* const newtonWorld, dgPostUpdateCallback callback); void EnableThreadOnSingleIsland(dgInt32 mode); dgInt32 GetThreadOnSingleIsland() const; @@ -586,7 +586,7 @@ inline dgFloat32 dgWorld::GetUpdateTime() const return m_lastExecutionTime; } -inline void dgWorld::SetPosUpdateCallback (const dgWorld* const newtonWorld, dgPostUpdateCallback callback) +inline void dgWorld::SetPostUpdateCallback(const dgWorld* const newtonWorld, dgPostUpdateCallback callback) { m_postUpdateCallback = callback; }