Nonexistent function 'projectile_ray_normal' in base 'Camera3D (view_model.gd)'

Godot Version

Godot 4.3

Question

I’m trying to make this shooting animation where i have my gun and i want to make it deal damage to a certain object with a collision. Was all set, hitscan and everything, until i come across the error in the title above. I’m guessing it has to do something with this camera that is mentioned (view_model_gd). This camera is the one where it renders the guns on the screen, without really having to render the guns in the world scene.

“Main_Cam” is the camera that renders the player’s perspective (it’s an FPS)

To everyone that wants the code, i’m just gonna link the github of the project i’m working on, because the code is really big. If anyone wants more details, just lmk
GitHub - MechaBRO/MagulaProject: Created for testers or anyone that want to help me with this project

It will be more easy to help you if you paste the code from view_model.gd here since your file on MagulaProject/Other/view_model.gd at main · MechaBRO/MagulaProject · GitHub doesn’t have the projectile_ray_normal call in it.

My guess is that you need to use project_ray_normal instead of projectile_ray_normal

Sorry for the late answer. Now i’m seeing that it really is the project_ray_normal that should’ve been added! Thanks

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.