|
This is my code: using UnityEngine; using System.Collections; public class Movement : MonoBehaviour { } It does not work lol. Can someone tell me why & tell me how i can make this work? I want to set a maximum speed of a rigidbody sphere. Thanks! :D
(comments are locked)
|
|
You should use That one line makes sure that the magnitude of the player's velocity cannot go above a certain value, however it does not limit specific axes. Also, why don't you just use instead of all that messing around with 'down'? It does the same thing. Thanks! & I used the whole boolean down thing because i want the player to move if the key is being held down :)
Nov 26 '11 at 07:40 PM
BioExtract
Yeah, but that's exactly what Input.GetKey does! There's no need to manage that manually.
Nov 27 '11 at 01:18 AM
syclamoth
(comments are locked)
|
