Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Need some mathematics help

$
0
0
So i'm trying to calculate object's future position so my enemy can land to it safely. Idea is that using future postion I can calculate angle and convert it to direction vector and also using distance I can calculate speed so it's necessary to reach it's target. I'm still kind of stuck with this idea

Here is code which I'm using atm

Code (CSharp):
  1.  
  2. // Find the close platform to land
  3. Transform _tmp = GetClosestPlatform(SpawnerNew.Platforms);
  4. // Hard coded time, should be time which enemy should...
Need some mathematics help

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>