Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

Adding a delay to a very simple Pong AI

$
0
0
I'm learning Unity and decided to make Pong since it's pretty easy to make and I'd learn some stuff doing it. Right now the enemy paddle just uses Lerp to follow the balls Y position. I want to make it so there's a small delay for this, like the enemy paddle is always going towards the position of the ball .2 seconds ago. I just have no idea how to do this. I'm using C#.

Viewing all articles
Browse latest Browse all 171066

Trending Articles



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