Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can I make a ball be pushed around more smoothly?

Asked by 4 years ago

I'm created a car soccer game where you use cars to push the soccer ball around. If you play by yourself, the ball moves around smoothly when pushed by your car. If you play against a single player, the ball still gets pushed around smoothly.

However, when the game is a 4v4, (4 players on each team), sometimes players are having trouble with pushing the ball at times. It turns out that the ball is pushing you at different times. This is an issue for goalkeepers. When a player has pushed the ball towards the goal and the goalkeeper tries to rush to the ball to push it away, the ball instead pushes the goalkeeper back and rolls into the goal unmoved. The goalkeeper can then push the ball once it's inside the goal.

Also, when many cars are crowded around the ball, I've seen a car try to push it but it remains unmoved for a few seconds. The same car reverses and pushes it again and the ball moves with no problem.

My question is: How do I change the ball so that it gets pushed around smoothly with different cars hitting it from multiple directions?

The ball is just a sphere with decals on it.

I do not know much about scripting. Thanks.

1 answer

Log in to vote
0
Answered by 4 years ago

You can reduce the parts weight by going into the part properties and enabling CustomPhysicalProperties and reducing the density of the ball. It should allow the part to be moved around with less force. You can also reduce the friction to allow the ball to roll farther.

0
Thanks for your response. I enabled the CustomPhysicalProperties but I do not see a Density or Friction option. However, I don't think weight is the problem. The ball moves around easily if you're playing alone but if other cars push it, sometimes it doesn't move when you hit it. It pushes you and keeps rolling. How do I make the ball be pushed around easier even when several other cars hit it? freewifiandinternet 0 — 4y
Ad

Answer this question