MG Car Physics [pending]

MGCarPhysics is a great physics model of cars. We do not use WheelCollider’s why our cars are more efficient. In this package there is a choice between a circle collider and collider cyllinder. Our cars use pacejka magic formula. Try this package after playing the demo.

To simulate engine operation points used in the graphs torque/RPM. Occurs the interpolation points. In the end, for each value of the RPM there is a Torque value. This allows obtaining accurate simulation engine.

This our Cyllinder Collider.
2321092--156534--Screenshot_1.png
We create a Cylinder Collider using a Sphere Collider and Raycast. That makes the wheel more realistic.
2321092--158225--logicMgCC.png

2321092--156534--Screenshot_1.png
WebPlayer
*V = Camera
*Num+ = Next Car
*Num- = Previous Car
Documentation

Price - 25$.

Can you provide a little more info on the statement that your wheels are more efficient than the Unity ones, have you got some benchmark figures as to how much more efficient they are. Also I tried your demo and the car seems to move in a juddery way when turning slowly and driving on steep slopes the car seems to turn on odd directions?

I also did tried the demo. The performance seem not good. The drift action is bad, too. I run this on good pc, but its very lag.

I think you are misleading the chamber. Switch on mouse look by pressing V.

Actually, your system is bad.

Why?

Does your wheel collider avoid the issue where a wheel will suddenly jump up on sudden terrain changes?

I would be interested to hear how you do your wheel collider? Also on your docs page the mgWheel section goes to the input section, you may want to fix that.

Trying your demo again it seems your wheels are using SphereColliders and not cylinders, is that right?

Cyllinder collider used sphere hit and raycast

So it is using your custom Cylinder collider in there? It just seems if I go near the edge of one of the blocks it behaves as if it is just a sphere collider.

It isn’t too bad, just needs some work. The car sits high and when steering, the car tends to shake(maybe make the rigidbody interpolated?).

I create cylinder collider so2321092--158225--logicMgCC.png

Implementation smooth steer.

 steerInput = Input.GetAxisRaw("Horizontal");
        if (steerInput > 0)
        {
            steer += Time.deltaTime * steer_speed;
            steer=Mathf.Clamp(steer, 0, 1);

        }
        else if (steerInput < 0)
        {
            steer -= Time.deltaTime * steer_speed;
            steer = Mathf.Clamp(steer, -1, 0);
        }
        else if (steerInput == 0 && steer > 0)
        {
            steer -= Time.deltaTime * steer_speed;
            steer = Mathf.Clamp(steer, 0, 1);
        }
        else if (steerInput == 0 && steer < 0)
        {
            steer += Time.deltaTime * steer_speed;
            steer = Mathf.Clamp(steer, -1, 0);
        }
        inputs.input_steering = steer;

Demo is updated. Please point out the bugs. I really need it.

Still bad physics. Not realistic yet. Pure performance.

Thanks for the reply! You can detail please. What needs to be polished?

  • Car movement is jerky, and the car stutters when turning
  • Set the camera to the unity Smooth Follow camera
  • Car sits too high
  • Car has infinite friction, not much drift/over steer
1 Like

Thank you so much. Now change the settings.

Can put basic settings in the GUI?

Demo updated