Question by
yannick06 · Jul 05, 2017 at 03:43 PM ·
1st person
how do i make a ball divide into three after it bounces off the paddle ?
// this changes the balls velocity reltive to how it is hit by the paddle. // this code was taken from a youtuber: Brackys. if (collision.gameObject.tag == "p1" || collision.gameObject.tag == "p2") { rb.velocity = new Vector3(rb.velocity.x, rb.velocity.y / 2 + collision.gameObject.GetComponent().velocity.y / 3, rb.velocity.z); } }
Comment
Your answer
Follow this Question
Related Questions
How to make a first-person player for my game (like slender or the island demo) 4 Answers
How fix colour ?? 1 Answer
So... why is Input not highlighting up when I type it? 2 Answers
3D Grappling Hook shape skewing *PLZ HELP* 0 Answers
Unity takes around 30 mins to open a new 2d project,Unity takes way too long to open a new project 0 Answers