Jump to content

How to make a collider


Recommended Posts

When i make a model with mesh collider(The mesh it self) All the highlight and attachment node are gone.I then make a model with lowpoly version as a collider and in the mesh collider section i choose the lowpoly version and it fliped wrong i try to rotate but it is always wrong.when i manage to flip it right in the game the part is't in the editor PLS HELP

Link to comment
Share on other sites

The highlight missing tells me the collider isn't working but why the attach nodes would disappear - I have no idea.

Three things to check:

1) Mesh colliders have a maximum size - 255 triangles I think. If needed you can have multiple colliders. Generally the collider will be a simplified version of the model - for example a 24 sided fuel tank typically has a 12 sided collider. And if you can use a collider primitive (box, sphere or capsule) it's even better.

2) Colliders also need to be convex - in Unity there is a checkbox in the mesh collider object you need to check.

3) Though I don't think this is your problem (both the model and collider would be rotated) when Blender exports a model using the Collada exporter the model will be rotated 90 degrees when imported to Unity - I don't know if other formats do the same.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...