Bullet going into random direction close up

So, I made these guns and when they are shot they send a bullet flying, pretty easy but when I’m up close then the following happens:
https://gyazo.com/eb775a313579dca4007c02312954c3bf

Anyone have clue why this happens? My best guess is something to do with how close you are to something and the cursor or something

My best guess is that there’s probably something wrong with your code :slight_smile:

1 Like

What exactly happened? Did the bullets freak out or something?

The closer you go to an object the more spread them become for some reason

Is this due to being to close to a object they bounce out everywhere?

Try adding an ignore table for bullets

Yes, in long distances they do what they need to do

make checks so the mouse position can never be negative

How can I check the mouse position

mouse.Hit.p probably…? I mean check if `(mouse.Hit.p - [part you’re shooting from].Position) > 0 before you carry on

1 Like