From 5cd36f199533fff49aa6da60f971df8641bb5129 Mon Sep 17 00:00:00 2001 From: Dander7BD Date: Wed, 20 Nov 2013 11:58:27 +0100 Subject: [PATCH] TangentialImpulseAcceleration fixed selfexplanatory documentation --- Code/OysterPhysics3D/OysterPhysics3D.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Code/OysterPhysics3D/OysterPhysics3D.h b/Code/OysterPhysics3D/OysterPhysics3D.h index ab2047de..592361ef 100644 --- a/Code/OysterPhysics3D/OysterPhysics3D.h +++ b/Code/OysterPhysics3D/OysterPhysics3D.h @@ -112,12 +112,12 @@ namespace Oyster { namespace Physics3D } /****************************************************************** - * Returns the local impulse acceleration at localPos, of a mass in angular acceleration. + * Returns the world impulse acceleration at ( worldOffset = worldPos - body's center of gravity ), of a mass in angular acceleration. * @todo TODO: improve doc ******************************************************************/ - inline ::Oyster::Math::Float3 TangentialImpulseAcceleration( const ::Oyster::Math::Float4x4 &momentOfInertiaInversed, const ::Oyster::Math::Float3 &impulseTorque, const ::Oyster::Math::Float3 &localOffset ) + inline ::Oyster::Math::Float3 TangentialImpulseAcceleration( const ::Oyster::Math::Float4x4 &worldMomentOfInertiaInversed, const ::Oyster::Math::Float3 &worldImpulseTorque, const ::Oyster::Math::Float3 &worldOffset ) { - return AngularImpulseAcceleration( momentOfInertiaInversed, impulseTorque ).Cross( localOffset ); + return AngularImpulseAcceleration( worldMomentOfInertiaInversed, worldImpulseTorque ).Cross( worldOffset ); } /******************************************************************