Quantcast
Channel: Latest Questions by Fox-Handler
Viewing all articles
Browse latest Browse all 90

Check player's position once per Second?

$
0
0
what would be the easiest way to check the player's position once per second. Vector3 PosPerSeconds() { posSeconds += Time.deltaTime; if (posSeconds >= posSecondsTimer) { newCurrentPosition = player.transform.position; posSeconds = 0; print ("newCurrentPosition"); } return newCurrentPosition; } I set something up like this to return a position every three seconds. Does this look like it would work?

Viewing all articles
Browse latest Browse all 90

Trending Articles



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