Problems with raycast node registering hits up close.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By tjhosek

Hey there. I’m trying to make a basic fps for a class and I’ve run into a problem with the raycast node. For the model I’m using, the raycast node doesn’t register collision on certain collision polygons when up close to what I’m shooting at. If you run the project located at the github repo here, you’ll see when you attempt to fire at the skeleton, it will register any body part as a hit from far away, only arms, chest and head from a medium distance, and only the head up close. The hit locations are shown in a hud element on the top left.

The player and skeleton scenes are in the scenes folder as player.tscn and TestDummy.tscn. The test dummy is being spawned into the map by an enemy spawner, under enemySpawner.tscn. You can press escape to restore control of the mouse and exit the game.