x


How to implement a Hit Test?

Hi guys,

Im new to Unity. Im trying to set up two objects to collide with each other but im having trouble writting the code.

Is there anyone who can help with script or a link to a tutorial?

Im using C sharp

Cheers

more ▼

asked Jul 27 '10 at 04:10 AM

Flashxx gravatar image

Flashxx
11 1 2 2

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

1 answer: sort voted first

You don't code collisions, they happen automatically. You just need to add a Collider component to your game objects that you want to collide.

http://unity3d.com/support/documentation/Components/class-BoxCollider.html

That's the reference for a BoxCollider, one of the common types of colliders.

If you're new to Unity, read through some of the links here:

http://answers.unity3d.com/questions/4897/how-can-i-start-learning-unity-fast-list-of-tutorials

more ▼

answered Jul 27 '10 at 05:22 AM

qJake gravatar image

qJake
11.6k 43 78 161

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

x194
x41

asked: Jul 27 '10 at 04:10 AM

Seen: 2163 times

Last Updated: Jul 27 '10 at 04:10 AM