Quantcast
Channel: Answers by "Mike 3"
Viewing all articles
Browse latest Browse all 60

Answer by Mike 3

$
0
0
You just use the same y value for both vectors: var currentPosition = transform.position; currentPosition.y = leader.position.y; if ( Vector3.Distance( leader.position, currentPosition ) >= distance) {

Viewing all articles
Browse latest Browse all 60

Trending Articles