How to make object with velocity bounce off the obstacles?
I have an object that has an assigned forward velociy.
For jumping, I'm applying impulse in Up direction. For example, the object should jump onto the platform. But when Jump button is pressed in improper time, platform and object are colliding and nothing happens because rigidbody still has velocity and the object is "pushing" forward, so, it just hangs in the air (see the picture attached, green is object's collider, the plaform's collider is equal to its image).
I want the object to bounce backwards in this case, or at least just fall down. How to achieve this?
Your answer
Follow this Question
Related Questions
How To create 2D collision detection on object which changes dimensions 1 Answer
OnTriggerEnter2D() is never being called 0 Answers
GameObject with multiple collider2D, 1 Answer
How can i get a transform to move to another transform if it is touching it? 0 Answers
Hit from kinematic rigidbody2d 1 Answer