- Home /
How to tell the exact moment a rigidbody bounces?
Is there a code or event of some type that can let me know exactly when my object bounces?
using oncollisionenter wont work since the object might bounce off the walls but still stay connected to the ground (think rolling ball)
thank you for any help!
If your floor and wall are using different colliders then OnCollisionEnter should still work since it will be called when the ball hits the wall even if the ball is already in collision with the floor.
The other solution may be to check for abrupt direction changes
Answer by ArseneySorokin · Jun 09, 2020 at 08:04 AM
If your object is "attached" to the floor while rolling isn't the bounce the moment it leaves the floor? So OnCollissionExit?
Your answer
Follow this Question
Related Questions
How to make Sprite not Bounce on Collision (2D) 6 Answers
Why Rigidbody collide with wall passes through partially? 0 Answers
Player bouncing off issue 1 Answer
bounce and roll a die 2 Answers