Closed itsTripp closed 2 years ago
Goal is to complete this by 2/14
All we need to do is allow a weapon to be thrown at the press of a button then apply the damage component to it and ensure it has a collider2d.
I will attempt to work on this tonight.
Created a new damage component VelocityDamage that factors in the velocity of the thrown object and allows for setting min and max velocities. If the object is moving slower than the min velocity the damage and knockback are 0 otherwise the damage and velocity is a percentage of the maxDamage and maxKnockback based on velocity / maxVelocity.
Apply damage to the enemies when a weapon is thrown.