Hi,
Do you want it to bounce back to the wizard or bounce off the wall like if you would throw a ball to the wall?
i can't test at the moment but
if the 2nd one i would create a 'physics material' and place it on the fireball collider
on the 'material'
You can play around with the friction and stuff, but you can start by setting static friction to 0 and Bounciness to 1
and use a 'look at' and then a 'set velocity' or 'add force' (space set to 'self' and i think in Z direction)
Alright, I think got a pretty good result now. I ended up with the bounce-material thing. And instead of "move towards" I use the "look at" and "add force"
Thank you so much for your help. I have another small issue now that I just can ask when we already are talking about it.
So, right now I have 2 colliders on the axe. 1 collider that's handling the physics (the bounce mateiral) and one that have "is trigger" to detect if the actual axe swing hit the wizard and should deal damage.
What is the best practise to go about having 2 colliders on one object? Right now, I have a child that has just a the physics-collider on it that i just a bit smaller then the trigger collider.
The problem with that solution is that the physic-collider needs to be smaller than the trigger-collider, and I would not like that way.
My gut feeling says that I should somehow work with layers here, but I never used them before so I'm not really sure how they work.
You have any input here?