From 1b2c49457ccdf145bd3900a3b0504699c4605e48 Mon Sep 17 00:00:00 2001 From: Dander7BD Date: Wed, 20 Nov 2013 11:36:17 +0100 Subject: [PATCH] Task assignment in RigidBody.cpp --- Code/OysterPhysics3D/RigidBody.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Code/OysterPhysics3D/RigidBody.cpp b/Code/OysterPhysics3D/RigidBody.cpp index 9f031979..3bc68f1a 100644 --- a/Code/OysterPhysics3D/RigidBody.cpp +++ b/Code/OysterPhysics3D/RigidBody.cpp @@ -258,6 +258,10 @@ Float3 RigidBody::GetTangentialImpulseForceAt_World( const Float3 &worldPos ) co return this->GetTangentialImpulseForceAt_Local( (this->GetView() * Float4(worldPos, 1.0f)).xyz ); // should not be any disform thus result.w = 1.0f } +// Dan +////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// Robin + Float3 RigidBody::GetTangentialLinearMomentumAt_Local( const Float3 &localPos ) const { // by Dan Andersson return Formula::TangentialLinearMomentum( this->angularMomentum, localPos );