- Home /
Mesh Collider for Voxels
Hey i did some Code for Voxels. Now i have a problem. I want to move a player in the world. The easiest way would be to use a mesh collider but i think that uses too much resources. So i have to write some own code for collision with the player. But am i right when i think i have to wright an own raycast function for interaction and stuff too? Or can i use Mesh Collider? I have Chunks with 24576 vertices (16*16*16*6). Ammount of triangles depends very much on the landscape.
Is this optimized in any way? (turning off invisible parts from rendering and such) also if you want collision you could try to generate mesh colliders only for the visible parts of the mesh, hard to give an answer without an illustration in this case.
Answer by WizzDE · May 02, 2014 at 04:00 PM
There is nothing wrong about using mesh colliders. You just have to make sure your mesh is optimized so you only render the faces that are visible. If you want to get started with voxels in unity you can check out my voxel package in the assetstore: https://www.assetstore.unity3d.com/#/content/17470
Your answer
Follow this Question
Related Questions
How to setup collision with freshly generated mesh and prefabs 1 Answer
Generate only collision mesh 1 Answer
MeshCollider Collision Table 2 Answers
This might be simple but i'm lost. 4 Answers
Implementing Meshless Deformation 0 Answers