x


Detect collision every frame

I have a car, and I want to detect every frame if it is colliding with the grouund to accelarate. Can someone tell me the script I have to use to detect the collision?

more ▼

asked Sep 26 '10 at 02:24 PM

Paul 6 gravatar image

Paul 6
41 12 12 16

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

1 answer: sort voted first

collision has 3 states - collisionenter, collisionexit and collisionstay

use enter and exit to handle your "is on ground" boolean state variable on the wheel

more ▼

answered Sep 26 '10 at 03:15 PM

Dreamora gravatar image

Dreamora
3.2k 1 4 25

Thanks Thanks Thanks!!!!

Sep 26 '10 at 03:28 PM Paul 6
(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:

x5086
x2499
x418
x173

asked: Sep 26 '10 at 02:24 PM

Seen: 1457 times

Last Updated: Sep 26 '10 at 02:24 PM