This post will show you how to create a cannon ball or shooting object with a power and direction.
step 1: create a sphere with the size as you want.
step 2: add Rigidbody to the sphere.
– At here, if you want to add a Collider to sphere you may have to change a value of “Collision Detection” in Rigidbody to “Continuous” or “Continuous Dynamic”, because if you stay the value of Collision Detection = Discrete, it will not happen when you add physics to it. It’s up to you! Tiếp tục đọc