- Home /
Show prediction for ball rolling on surface
In many golf games there is a line/guide when putting that shows a preview of how the ball will roll given a specific power applied to it.
What techniques can one use to make this in unity?
I know how to predict ball flight, but can't figure out how to do it for rolling on uneven surface.
Picture:
Answer by Lazdude17 · Apr 07, 2018 at 04:56 PM
Not sure of the best practice, but just try things. That's the best way to get some knowledge/experience in it. There are a million different ways to do most things in programming. Just need to find one that works.
I would try shooting an invisible ball every time the Power or Angle is changed and then use that info to draw your prediction line. The rough ground does make it difficult to find trajectory without some practical means like this.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Sometimes the ball isn't moving 0 Answers
Distribute terrain in zones 3 Answers
How to make Rigidbody.AddForce less delayed in Unity3D? 0 Answers
Empty GameObjects fly away. 2 Answers