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

Child of FPSController cannot collide with anything?

$
0
0
Hello. So I'm pretty new to Unity, and I'm trying to implement an axe cutting feature into my game. Everything has been going smoothly until I had to make the tree fall when I hit it with my axe. The way I'm doing this atm, is when I click "e" while I'm looking at the axe, it becomes the child of a gameobject, that is a child of my charactercontroller, so as to make it "equipped". The problem is, while the axe is equipped, it will not collide with anything, and that's a problem, since I need the axe to collide with the tree so I can make the tree fall when I swing at it. Here's my hierarchy: ![alt text][1] I've been looking all over the internet for a solution, but I just can't find one. (I've also tried the "OnTriggerEnter" method instead of the "OnCollisionEnter" method, but since I need to detect how much force the axe hits the tree with, it doesn't work. I would really appreciate if you tried to help! - Pringle [1]: /storage/temp/168277-hierarchy.png

Viewing all articles
Browse latest Browse all 513

Trending Articles



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