Tag Info

New answers tagged

1

Use rigidbody.AddForce instead of transform.Translate so that the collisions are detected. For the direction create a variable with the difference between the target and the object itself and then normalize to find out the direction.


0

I think a normalized vector from the ball to the object. direction = (ball.transform.position - kicker.transform.position).normalized; I made a game doing kind of this thing you are doing. (source code link in the post) http://luigigarcia.byethost7.com/projects/goal-a-r-goal/ I think that your kicking object must do this work, not the ball. You need to ...



Top 50 recent answers are included