|Topic was automatically imported from the old Question2Answer platform.
In my game the player has a shotgun that they can use to shoot things. The player shotgun will look at the mouse position, and inherits from a base shotgun, and the create_shot() function in the base shotgun will create a spray_shot that has the same rotation as the shotgun. The spray_shot object will create a bunch of bullet objects with slightly varying rotations, speeds and lifetimes that move forward. For some reason, the spray shot seems to be pointed in the wrong direction. I used prints to find that the bullets are generally tending towards the same rotation as the spray shot (they are slightly varying on purpose). Here are pictures of each of the scripts involved: Imgur: The magic of the Internet
example of problem: Imgur: The magic of the Internet (sorry for weird cropping, obs was being weird)
it’s weird that there is a problem, because the shotgun also sends a signal to the player to recoil from the shot and that works fine. This has been a problem for a while, so any and all help is greatly appreciated.