gmuGADIG / Fruit-Punch

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

feat #189: thrown objects deals damage #242

Closed micycle8778 closed 3 months ago

micycle8778 commented 3 months ago

fix #189 Thrown objects now deal damage. This is done by adding a new hurtbox to every grabbable, then pointing Grabbable.throwingHurtBox to the new hurtbox in the inspector. The grabbable will then enable the hurtbox when the object is thrown, and disable the hurtbox when the object collides with the world.