I’m trying to create a small minigolf game just to learn more about game design. Right now I have it set up where you hold down space to charge up a hit and when you let go, relative force is applied to the ball to get it to move in the direction it is facing. The issue I am running into however is that sometimes when the ball rolls across two different floor objects (two cubes basically) it will launch up into the air. Does anyone know how to fix this? (This issue does not occur if the floor is made out of a single object. It only occurs when rolling from one object to another). I’ve linked a few videos of the incident and attached some screenshots.
This is what the ground that the ball is rolling on looks like.
This is the code I use to add the force to the ball.
Any help on this would be greatly appreciated as I’ve been running into this issue for a while and I could not find any solution to it.