0 votes

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.

in Engine by (17 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.