Skip to content

Instantly share code, notes, and snippets.

View RandomExplosion's full-sized avatar

RandomExplosion

View GitHub Profile
@v21
v21 / gist:5378391
Created April 13, 2013 13:23
A script to get a random point on a mesh, for Unity3D
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class RandomPointOnMesh : MonoBehaviour
{
public MeshCollider lookupCollider;
public bool bangGetPoint;
private Vector3 randomPoint;