- Home /
Issue with my Character controller script and textures?
Hello so i was testing a build of my game and i have noticed that when the graphichs quailiy is anything less than "Good" it makes my charater controller act all weird and starts stuttering here is the code
var forward : Vector3 = transform.TransformDirection(Vector3.forward);
var right : Vector3 = transform.TransformDirection(Vector3.right);
var curSpeed : float = walkSpeed * Input.GetAxis ("Vertical");
var curSpeed2 : float = walkSpeed * Input.GetAxis ("Horizontal");
if (Input.GetKey(KeyCode.W) || Input.GetKey(KeyCode.A) || Input.GetKey(KeyCode.S)|| Input.GetKey(KeyCode.D)) {
controller.SimpleMove(forward * curSpeed);
controller.SimpleMove(right * curSpeed2);
}
any ideas whats wrong?
Couple of thoughts: do you have Vsync on? Is this in Update or Fixed/Late?
Vsync is what it is at when you first download unity and this is in update
Vsync is on then, turn it off and see if you get different results? Just to be sure, you did mean to say "anything less than" (ie. usually questions like this are the other way).
Ok so i went into Edit>Project Settings>Quality and looked at what is constant through the bottom three but differnt in the top three quality levels and it turns out that V Sync Count was so i changed it on the simple level and tested it and now it works so...
Your answer
