I have an issue with rotating objects with a circle that I create like this: enter image description here

I'm going on that but the car doesn't rotate with the circle rotator.

Here is the rotator script that might help because I don't know where is my problem:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Rotator : MonoBehaviour
    public int RotateSpeed;

    void Update()
        transform.Rotate(new Vector3(0, 1, 0), RotateSpeed * Time.deltaTime);

Also, I'm using wheel collider but this is not the problem.

For the test, I drop a cube on the circle but the cube doesn't rotate

The rotator friction uses the defaults & here are the wheel friction settings:

Wheel Friction

  • \$\begingroup\$ Just to be sure, the circle on the ground rotates and you want objects that are on it to rotate with it, correct? How high is the friction of your objects and the rotator? \$\endgroup\$
    – Zibelas
    Commented Sep 19, 2023 at 18:19
  • \$\begingroup\$ @Zibelas I'm Added them Please check them \$\endgroup\$ Commented Sep 19, 2023 at 20:17
  • 1
    \$\begingroup\$ Please be mindful of the guidance when selecting tags. Your screenshot shows version 2022.18 - Unityscript was last available on version 2017.2 & was already considered legacy for a while before that. \$\endgroup\$
    – Pikalek
    Commented Sep 19, 2023 at 21:02
  • 1
    \$\begingroup\$ @MobinBagheri that is for the car, what about the platform? Usually it would be a physics material. \$\endgroup\$
    – Zibelas
    Commented Sep 19, 2023 at 21:29


You must log in to answer this question.

Browse other questions tagged .