- Home /
SimpleMove Without Gravity
I've got SimpleMove working but my character flies as well as runs around, but since simpleMove always applies gravity when I use it it will drag my character to the ground if I'm flying. Any ideas on how to turn the gravity portion of SimpleMove off?
if(PushBCK){
var controller : CharacterController = GetComponent(CharacterController);
var backward : Vector3 = transform.TransformDirection(Vector3.forward);
controller.SimpleMove(backward * -7);
}
Answer by crazyKnight · Jul 26, 2011 at 09:24 AM
use move instead of simple move
http://answers.unity3d.com/questions/45993/disable-character-controller-gravity.html
Sorry, I'm a bit of a newb. Would you $$anonymous$$d explaining how I'd implement it into my script? The reference is a little confusing.
Lmao, thanks. I figured it out right after I posted that. Thanks for the insurance that I got it right though. I din't think he meant replace it so literally.
dude i have opposite problem with your problem here.... hehe. I used Simple$$anonymous$$ove but my character when moving is flaoting i wanted it to have gravity so how did u do it? correctly using simple$$anonymous$$ove
Your answer
![](https://koobas.hobune.stream/wayback/20220612155312im_/https://answers.unity.com/themes/thub/images/avi.jpg)