0
\$\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\$
4
  • \$\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, 2019 at 1:27
  • \$\begingroup\$ Are you possibly seeing temporal aliasing like happens with video? (The so-called wagon-wheel effect?) \$\endgroup\$ Oct 3, 2019 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, 2019 at 1:58
  • \$\begingroup\$ And thanks for your answer too @user111 \$\endgroup\$
    – Sugendout
    Oct 4, 2019 at 2:02

1 Answer 1

1
\$\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\$
1
  • \$\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, 2019 at 1:52

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .