error: ConvexHullBuilder::CreateTrianglesFromPolygons

ConvexHullBuilder::CreateTrianglesFromPolygons: convex hull has a polygon with less than 3 vertices!

(Filename: …..\PhysXCooking\src\convex\ConvexHullBuilder.cpp Line: 1126)

Gu::ConvexMesh::loadConvexHull: convex hull init failed! Try to use the PxConvexFlag::eINFLATE_CONVEX flag. (see PxToolkit::createConvexMeshSafe)

I started getting this error when I added new objects to my game, recently I tried to parent bulletholes to HUMVEES in my game and this error multiplied dramatically. Can anyone tell me what this is? I searched on it and found nothing.

Here is the piece of code that made this error go nuts:

IEnumerator OnTriggerEnter(Collider obj){
if (obj.tag == “danger” || obj.tag == “enemy” || obj.tag == “other” || obj.tag == “Explosive” || obj.tag == “machinegun”) {

		control1.score = control1.score + 1;

		if (obj != null)
		bullethole_instance = Instantiate (bullethole, obj.transform.position, obj.transform.rotation) as GameObject;
		bullethole_instance.transform.parent = soldier.transform;

		obj.transform.RotateAround(Vector3.zero, Vector3.up, 20 * Time.deltaTime);
		if(obj!= null && bullethole_instance != null){
			obj.enabled = false;
			yield return new WaitForSeconds (20f);
			bullethole_instance.SetActive(false);
	}
	}
}

Normally, I only got this error when I started the game and when I shut it down. Those were two errors too many but once I added this piece of code, it multiplied dramatically.

Chris

I am having a similar problem @cdixon9023 - did you ever figure this out?