- Home /
Question by
seanleongkw · May 09, 2017 at 05:56 AM ·
unity 5collisioncollision detectioncollider2dcollision2d
How do I set an object's velocity to the velocity of an object that collided with it?
I have a player that moves around by creating balls onclick and colliding with the balls. When a ball collides with the player, I want to destroy the ball and set the player's velocity to the ball's velocity. I've tried masking collisions but nothing works.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612121535im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Collision detection problem 0 Answers
Can't detect colliders from Tiled 0 Answers
How to set collision for an object with specific collider size? 3 Answers
multiple objects on oncollissionstay2d 1 Answer
Last collision 1 Answer