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

Instantiated terrain tree collision not working

$
0
0
Hello all! I'm trying to make a game that loads prefab terrains at run time, triggered by various conditions (such as where the player camera is). I noticed that if I "preload" the terrain (meaning the terrain is already in the scene when game starts as opposed to instantiating prefab), then the tree collision and terrain collision are both working. However if I instantiate the terrain prefab during run time, terrain collision works but tree collision doesn't. The way I test it is by moving a rigidbody gameobject with AddForce command, and let it fly towards the tree. The object simply passes through the tree but will bounce upon touching the terrain. Is this a known issue? Thanks! :)

Viewing all articles
Browse latest Browse all 513

Trending Articles



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