I can imagine this:
![alt text][1]
[1]: /storage/temp/21006-knockback.png
I just cannot code it in C#. I think the script should be on fire prefab and it should detect the charactercontroller collision and get the point firstly. Then send charactercontroller by some amount in the opposite direction with gravity so it stops somewhere. (Oh and it should be collision point(x,charactercollider's bottom.y,z) if collision is a line. I don't know how it would detect the collision point in ths situation honestly.)
Am I on the right track? Is the script should be attached to fire or character? How to create the direction and move charactercontroller in that way?
Sorry, I'm a beginner but this will help me understand a lot of things. Can anyone help me out?
↧