I am a member of a team working on a 2.5D plarformer. We got most of our mechanics working, but for some reason we are completely unable to add a "rebound" effect when the Player Character jump on an ennemy.
Since a Character Controller can't be affected by physics, using the "bouncy" material is out of the question.
How would you script a "rebound" effect for the Character Controller?
We are really new to scripting and game creation, so sorry if the answer is obvious.
Well I am new too, but have you tried finding the velocity of the player and then on collision reversing it into a negative?
on collision{
rigidbody.velocity.y = (collision.relativeVelocity-(collision.relativeVelocity2))
rigidbody.velocity.x = (collision.relativeVelocity-(collision.relativeVelocity2))
}
No idea if this would work or not but it might be worth a try.