- Home /
How to Move Controller Forward Automatically?
Hey guys,
Hate to ask, but was wondering if somebody could help me with this script?
I'm trying to have my controller move forward automatically. So far, I've been unsuccessful. Here's my code:
var moveForward = transform.TransformDirection(Vector3.forward);
controller.transform.position += moveForward * 50 * Time.deltaTime;
GetComponent(CharacterController); // in my Start function
and I have my CharacterController controller var declared. My player moves around can be controlled.
The problem is I can't get him to move forward automatically when I need him to.
What's wrong with my script?
Thanks for any help in advance.
Can you past your whole script? You be using $$anonymous$$ove() or Simple$$anonymous$$ove() to move the controller. There may be other issues.
Your answer
Follow this Question
Related Questions
Help with CharacterController.Move 0 Answers
Very Simple Left and Right Movement Script [OR] disable dravity on CharacterController? 2 Answers
Character Controller won't move forward 0 Answers
i want to move a ball on z axis and jump on y axis , 2 Answers
Rotate character controller on all axis 0 Answers