- Home /
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?
Answer by syclamoth · Apr 26, 2012 at 02:45 AM
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.
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?
Selecting "generate colliders" doesn't make a trigger right?"
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?