x


Using rigidbody.AddForce and speeding the object

I have lets say a basket ball and a hoop.

I currently have a nice arc I want the ball to travel along and it makes it into the hoop. Problem is that its too slow - the ball looks like it hovers and takes it sweet time in the air.

I need a solution that would only speed up this object with the same rigidbody force and mass. I tried rigidbody velocity but it seems to have no effect.

more ▼

asked Jul 06 '11 at 11:08 PM

J3 Gaming gravatar image

J3 Gaming
244 18 22 24

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

Are your scales correct? If your ball is 1 unit in diameter, then the default gravity setting of 9.8 units/s/s will look wrong. Make your ball 0.25 units and it will then look right... because units will then be meters as the 9.8 is intended. You can of course keep measuring everything in basketball diameters and adjust gravity accordingly, but that will eventually get confusing.

If your scales are all right and you simply want the ball to travel faster than it would in the real world, increase gravity and everything will move on faster ballistics.

Gravity is set in the Physics project settings.

more ▼

answered Jul 06 '11 at 11:16 PM

Waz gravatar image

Waz
6.5k 22 33 71

(comments are locked)
10|3000 characters needed characters left

Turning up the gravity worked (the basketball is only a simple example) Had to re-do the numbers but it does work better now thanks.

more ▼

answered Jul 06 '11 at 11:25 PM

J3 Gaming gravatar image

J3 Gaming
244 18 22 24

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1798
x358
x318
x292
x245

asked: Jul 06 '11 at 11:08 PM

Seen: 933 times

Last Updated: Jul 06 '11 at 11:25 PM