Voxel Collider

A component that lets you generate colliders for your voxels.

Usage

  1. Add this component to a GameObject that has a VoxelRenderer component.

  2. Add a MeshCollider to a GameObject and assign the VoxelCollider's MeshCollider property in the inspector.

  3. Check the EnableCollision toggle on voxel types that you want to generate colliders for.

  4. Build the mesh.

Properties

The MeshCollider that the collision mesh will be assigned to.

public MeshCollider MeshCollider { get; set; }

Last updated