kravening / Nut-A-Squirrel

0 stars 0 forks source link

Projectiles gets stuck inside a collider. #33

Closed kravening closed 5 years ago

kravening commented 5 years ago

Sometimes during game play the projectiles would get stuck inside a collider after hitting a target.

kravening commented 5 years ago

It seemed that when a target wanted to throwback the wrong ingredient the object was moved onto the target's position. this can cause some problems during the early points of target's animation, where the target's position, which the projectile will be moved to on contact would still be inside the projectile block collider. this causes the projectile to be moved inside the collider and start bugging out.

this issue was resolved by moving the thrown back nut not to the target's position, but to shoot the nut from where it got into contact with the target's collider.

the issue has been processed and fixed in the branch "ProjectileThrowback".