Heyo! We’ve recently been trying to smoothen out the soccer ball mechanics for our game, Roblox Football Club.
We’ve gotten client-server ball replication, basic dribbling & shooting however we do miss one of the biggest fundamentals: ball curving.
The idea we came down to is to record your mouse’s position while holding the left mouse button (you hold the mouse button to shoot) & translate that to the ball, however we have no idea of how to implement this:
- How would we go about translating a 2d position in a 3d environment?
- How do we override/change the velocity of the ball so it curves?
- How do you determine the power of the curve?
Other games in our genre have simply just added the ability to select your left foot/right foot mechanic and always have a SET curve velocity depending on which foot you choose (to go left or right) however I feel like that is very limiting and doesn’t give much control for the player
Here’s a video of our current gameplay so you have a better glimpse of what we’ve done so far: