-1
\$\begingroup\$

I have a wheelcollider attached on a rigidbody and i move the object using : "transform.position += transform.forward * speed * input.getkey(keycode.uparrow)" And when the speed increasing the wheelcollider start stuttering How to solve it? Do i wrong using the script above? Or something? Can anyone solve it? thanks

\$\endgroup\$
  • \$\begingroup\$ What did you try to solve the issue? What's your frame rate? Against what does it stutter/what's your surface? Are you mixing forces with this transform modification? You might want to add a link to a youtube video or an animated gif to the question to show us what happens. \$\endgroup\$ – Vaillancourt Oct 3 at 1:27
  • \$\begingroup\$ Are you possibly seeing temporal aliasing like happens with video? (The so-called wagon-wheel effect?) \$\endgroup\$ – user1118321 Oct 3 at 2:22
  • \$\begingroup\$ Aa..... I dont really understand what is mixing forces with transform modification sorry for that i still noob to unity anyway thanks for the answers @Alexandre \$\endgroup\$ – Sugendout Oct 4 at 1:58
  • \$\begingroup\$ And thanks for your answer too @user111 \$\endgroup\$ – Sugendout Oct 4 at 2:02
0
\$\begingroup\$

wheel collider is for making movements for wehicle and everything that works with wheels. you should use WheelCollider.motorTorqueotherwise you get some physics problems like stuttering as you said.

check that your wheels not to make collision with other colliders.

\$\endgroup\$
  • \$\begingroup\$ Thanks for answers... But Example i made a plane then i use "WheelCollider.motorTorque" The object is moving fine not stutter but....... When i press "w" The plane doesnt fly if i use "transform.position.... Etc" Like above when i press w the plane fly but wheelcollider are start stutter do you know how to solve this thanks \$\endgroup\$ – Sugendout Oct 4 at 1:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.