var forward = transform.TransformDirection(Vector3.forward);
var curSped = speed * Input.GetAxis ("Vertical");
controller.SimpleMove(forward * curSped);
… how does the SimpleMove function relate to a basic transform.Translate?
Specifically, if I wanted to replace the last line of code with a transform call to effect the same kind of translation achieved with the CharacterController call, how would I do that?
Well, given the description of SimpleMove in the docs it sounds like a translate call with any y-values stripped out (well, set to zero). Something like this (untested forum code!):
var forward = transform.TransformDirection(Vector3.forward);
var curSped = speed * Input.GetAxis ("Vertical");
var simpleForward = Vector3(forward.x, 0, forward.z);
transform.translate(simpleForward);
Unfortunatly, your suggestion is pretty much what I’m doing, so my problem must be somewhere else. I was hoping maybe the SimpleMove did something little bit of wierdness that I needed to compensatre for. Apparently not.