listener: Fix a typo causing collision damage to be applied in full

There was a typo in vjolt_listener_contact.h where it would get the velocity of the first object twice, which was wrong, and this was causing damage to be applied in full
This commit is contained in:
Josh Dowell 2022-08-29 23:32:17 +01:00 committed by Joshie
parent 6d81c04454
commit c9604f710f
1 changed files with 1 additions and 1 deletions

View File

@ -418,7 +418,7 @@ private:
// Unused...
, m_ContactSpeed( vec3_origin )
, m_Velocity0( pObject1->GetBody()->GetLinearVelocity() )
, m_Velocity1( pObject1->GetBody()->GetLinearVelocity() )
, m_Velocity1( pObject2->GetBody()->GetLinearVelocity() )
{
}