Hello! To go straight to business, basically i have a shooting mechanic that i’m getting through with an youtube video and i can’t make the shot go where i want it to go/the target desired, that is, where my aim leads.
Everything is working well, it’s really just the bullet that is going to somewhere i don’t want it to go…
Where the bullet goes, to the side (it’s marked by this red mark on the ground, it’s where the shot landed)
I have the project for the game, and it’s right by the Player3D, in Main_Cam and then in Weapons_Manager…
Any help is much appreciated, it should be really simple, i just can’t figure out what it is. I thought maybe it was the rotation of the Bullet_Point node, or maybe some miscalculation on the code, but i can’t seen to find it
Put down some print statements to see what values are being used. Print out the value of every variable in the functions. Without this it will be hard to diagnose.
Also your github project was updated three weeks ago so I can’t be sure you’re showing me your recent code.
I assure it’s recent-to-date. Well i could print some statements, but i would’ve to have something i wanted to test if it’s working? Like, everything is working, it’s just the bullet doesn’t go in straight line, it goes to the bottom right. It technically even can hit the desired target (in which is a purple box), but not the way it has to, yk? like you can hit it, you just can’t aim it to hit it lol
When I say print statements, I mean printing the value of each variable in the code snipped I shared in my previous post. By printing the value of each variable, you can observe if it is what you’d expect. This is a first step in diagnosing the problem. When we see what values are expected and what values are actually used, I can help you better.
Oh, i think i got it. But, if i am not asking too much, how could i do that? Do you have an example at least that i could work around? I’m new to this so, i’m still learning and getting things done