Remove unnecessary for- and while-loops from your game by calculating trajectories analytically.
Sorry for the clickbait, but I think it is important for a majority of games, and can improve their performance and precision regarding this topic.
Link to the mathematics (please be gentle):
https://parable-games.com/wp-content/...
Link to my profile on the Unity Asset Store:https://assetstore.unity.com/publishe...
Link to my Patreon: / blenderfan
Link to the code: https://github.com/blenderfan/Advance...
TIMESTAMPS
00:00 Introduction
01:32 The Simple Way
04:39 With A Formula
07:18 Applying Newton's Method For The Position
10:11 Finding The Start Velocity
10:21 Outro