Task assignment in RigidBody.cpp

This commit is contained in:
Dander7BD 2013-11-20 11:36:17 +01:00
parent b8d0a106b3
commit e41d16cc03
1 changed files with 4 additions and 0 deletions

View File

@ -259,6 +259,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 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 Float3 RigidBody::GetTangentialLinearMomentumAt_Local( const Float3 &localPos ) const
{ // by Dan Andersson { // by Dan Andersson
return Formula::TangentialLinearMomentum( this->angularMomentum, localPos ); return Formula::TangentialLinearMomentum( this->angularMomentum, localPos );