Fixing Curveball not being able to curve to the right

I’m not sure if i implemented the magnus calculations right, but i managed to get some sort of curve shot!

Logic:
image

Im only able to make curve shots go to the left tho, when i try to make it go to the right, it goes backwards.

Left Curve-shot Code:
image
Left curve shot:

Code snippet that should make a curve shot to the right (2nd parameter is the angular vel)
image
This is what happens when i try to do this:

2 Likes

Im pretty sure you need to inverse either 85 to be -85 or 35 to be -35

1 Like

Oh yeah i wasnt paying attention, thanks for pointing it out, ill try and see if that fixes it.

gubby latch: frenemies :wilted_flower:

not sure if i’m misunderstanding this, but you need to invert the left velocity, in the code you seem to have inverted the upvector, which doesn’t really make a lot of sense to me

Im using magnus physics and to make the ball curve left/right you need to modify the Y axis.

1 Like