x


How do I increase speed after collision?

Just like the title asked. How do I increase speed after collision? Also, how do I avoid passing through objects at a high speed?

more ▼

asked Apr 19 '11 at 07:02 PM

Chris 44 gravatar image

Chris 44
1 2 2 4

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

2 answers: sort oldest

I don't know about objects passing through objects, but I believe increasing speed after a collision would be accomplished using:

http://unity3d.com/support/documentation/ScriptReference/Vector3.Reflect.html

and applying that at whatever magnitude you want using

http://unity3d.com/support/documentation/ScriptReference/Rigidbody.AddForce.html

more ▼

answered Apr 19 '11 at 07:15 PM

Patyrn gravatar image

Patyrn
542 49 54 65

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

Also, how do I avoid passing through objects at a high speed?

If you are using physics do NOT use transform translation to move objects. Only use the ridgidbody to move your object

If that fails to work for you you can use this

Dont Go Through Things

more ▼

answered Apr 19 '11 at 07:23 PM

Fervent gravatar image

Fervent
175 1 1 8

(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:

x2582
x1120
x370
x61

asked: Apr 19 '11 at 07:02 PM

Seen: 1287 times

Last Updated: Apr 19 '11 at 07:02 PM