gmuGADIG / Fruit-Punch

Unity game developed by GADIG at GMU, Spring 2024.
4 stars 0 forks source link

Enemy throw fixes #209

Closed Justin1L8 closed 4 months ago

Justin1L8 commented 4 months ago

Fixed various bugs involving throwing enemies. Enemies are now thrown in an arc, at a reasonable speed. Throwing deals the correct amount of damage, instead of killing them instantly.

To do this, enemies no longer have a NavMeshAgent, and instead use the static NavMesh.CalculatePath funciton. This allows all movement to be handled by the rigidbody.

Additionally, I re-fixed the bug where player attacks wouldn't hurt enemies. Not sure what happened to the first fix.