Quantcast
Channel: Questions in topic: "addforce"
Viewing all articles
Browse latest Browse all 1264

Player going through walls

$
0
0
Hello everyone. i searched the whole internet and found no answer. so i'm gonna ask here. i have my player which is moved by this part of the script: Player.GetComponent().AddForce(Player.transform.forward * 20); The player has a rigid body on him. the rigid body is not kinematic but has disabled gravity. In that part of the script i want my player to keep going forward and he does. but he goes into walls. And i can't move my player with the character controller move option, because i disabled my character controller because i need to move my player on the y axis and the character controller doesn't allow that.

Viewing all articles
Browse latest Browse all 1264

Trending Articles



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