Game Editing > Video Channel

[Unity] export meshes with collision from Blender

(1/1)

kat:

Export game-mesh with custom collision for Unity

Problem
Although Unity has a number of way to add collision to an environment using Unity Editor, placing hundreds or thousands of such objects can be tedious and time-consuming for large levels, or projects with a lot of model assets in use. To alleviate this, rather than using the editors inbuilt systems, collision can be included alongside models when they are exported from Blender (Max, Maya or other 3D software).

- For learn more about collision read "Collision meshes & game models".

How to add collision to mesh
The collision mesh is basically a simplified version of the 'game object', the item visible to the player in-game. Generally speaking the collision mesh will be constructed from 'primitive' shapes, usually cubes and other solid volume shapes in differing configuration, be 'closed' or 'sealed' (must not have any open faces or gaps), and be convex. For accuracy both collision and visible game-mesh should similarly position in 3D space, and use the same Origin point (shown below separated for clarity).

Navigation

[0] Message Index

Go to full version