Quantcast
Channel: Answers by "ransomink"
Viewing all articles
Browse latest Browse all 80

Answer by ransomink

$
0
0
If you already know the position you want the player to move to, check if the player collided with the trigger and set it to the teleport position [SerializeField] private Transform teleport; private void OnTriggerEnter( Collider other ) { if ( other.CompareTag( "Player" ) ) { other.transform.position = teleport.position; } } Assuming this is on the trigger game object...

Viewing all articles
Browse latest Browse all 80

Trending Articles



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