Quantcast
Channel: Answers for "Y Axis Limit"
Viewing all articles
Browse latest Browse all 4

Answer by christoph_r

0
0
How about this? function Update () { if (CFInput.GetKey(KeyCode.W) && transform.position.y 7) { rigidbody.velocity.y = speed *-1; } else { rigidbody.velocity.y = 0; } }

Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images