Hi,
I want to throw a ball from ship into sea. I have tried to do this but this is not giving a natural look. So, I want some help in code.
Waiting your precious help;
Regards;
Unity Boy
Hi,
I want to throw a ball from ship into sea. I have tried to do this but this is not giving a natural look. So, I want some help in code.
Waiting your precious help;
Regards;
Unity Boy
Try giving it a rigidbody and moving it with forces. This should give it a very natural look.
Please some help in code…
I want that I will throw using some projectile motion.
FIrstly, you need to determine which direction you want to throw the ball. The ball should have a rigidbody component (menu: Component > Physics > Rigidbody). You can add a force to it like this:-
ball.rigidbody.AddForce(direction);
Thanks andee it works…