- Home /
Rigidbody AddForce not colliding to objects with Colliders
Hi.. please help. when using addforce to throw a ball and targeting an object, the ball never collides to any objects that has colliders. But if I disable the the ball to target something while being thrown then the ball will collide. this is my code...
transform.parent = null;
RBody.useGravity = true;
transform.rotation = ParentBone.transform.rotation;
//RBody.AddForce(transform.forward * Force); // When using this line of code, the ball will collide
RBody.AddForce((target.position - transform.position) * Force); // when using this code, the ball just passes through any colliders.
any help?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612143436im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Ball Addforce Acceleration Speed 1 Answer
rolling ball movement on different axis 0 Answers
Ball Rotating Help 0 Answers
Ball physics help 2 Answers
AddForce to position on Rigidbody 2 Answers