Hi, I'm trying to make a 3D football game, and to kick the ball I'm trying to use apply_impulse() (obviously if this is not the best way, that can be changed)
The only issue is that I don't understand physics all too well, and I don't know what parameters I need to pass in, in order to apply an impulse that takes into account the player's rotation degrees, and therefore ends up 'kicking' the ball in the direction the player is facing. There is also literally no tutorial videos that end up including this or forum questions from what I can see, so I'm a little bit in the dark and alone despite knowing that other people have definitely been through this as well lol.
If anyone can put some code that would end up kicking the ball off in the direction the player is facing, that would be amazing, but any help at all is greatly appreciated! 🙂