Quantcast
Channel: Questions in topic: "tree"
Viewing all articles
Browse latest Browse all 513

TreeInstance is not working properly

$
0
0
void GenerateTreeColliders() { for (int i = 0; i < _terrainData.treeInstanceCount; i++) { Vector3 _newPos; _newPos = _terrainData.treeInstances[i].position; GameObject _collider; _collider = new GameObject(); _collider.gameObject.AddComponent(); _collider.transform.position = _newPos; } } Why are the positions of the objects created? ![alt text][1] [1]: /storage/temp/97511-screenshot-17.jpg

Viewing all articles
Browse latest Browse all 513

Trending Articles



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