How to make part ricochet?

have you seen this post?

nevermind, you are already using the code for it