x


create a collider onto an fbx

Hello, I recently started using unity about a month ago and I am trying to make a simple game which includes a maya fbx file. In the game, I want to somehow make a collision detection with the fbx file and the camera. I tried using a mesh collider, but I was unable to find a mesh shape that would fit perfectly onto the fbx. Therefore i am wondering, Is it possible to have a collider that fits perfectly onto any shape?

more ▼

asked Apr 26 '12 at 02:42 AM

eggrolldh gravatar image

eggrolldh
0 1 1 1

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

1 answer: sort voted first

Do you know how mesh colliders work? Your .fbx file includes all the data you need for this- just tick the 'generate colliders' box in the .fbx importer window, and it'll even do it for you! A mesh collider works just like a mesh filter- you just drag the mesh you want onto the slot in the inspector.

more ▼

answered Apr 26 '12 at 02:45 AM

syclamoth gravatar image

syclamoth
15k 7 15 80

I selected the 'generate colliders' box, but it doesn't do anything. Is there something else I was supposed to do? Also, how would I make the fbx call OnTriggerEnter?

Apr 26 '12 at 11:10 AM eggrolldh

Selecting "generate colliders" doesn't make a trigger right?"

Apr 26 '12 at 09:13 PM eggrolldh

Colliders and trigger are the same component, the only difference is the 'isTrigger' toggle. They function slightly differently.

Check your gameObjects in the scene- do they all have colliders?

Apr 27 '12 at 08:37 AM syclamoth
(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:

x2584
x1403
x575

asked: Apr 26 '12 at 02:42 AM

Seen: 1249 times

Last Updated: Apr 27 '12 at 08:37 AM