Quantcast
Channel: Questions in topic: "error"
Viewing all articles
Browse latest Browse all 7934

error: ConvexHullBuilder::CreateTrianglesFromPolygons

$
0
0
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

Viewing all articles
Browse latest Browse all 7934

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>