#I need help with the new physics for unturned!:C

1 messages · Page 1 of 1 (latest)

sweet rivet
#

<@&553315866146766850>

white hatch
#

@sweet rivet if you added the wheel suspension physics in the date file,the game will make the wheel models follow the position of the tire collider

Make sure your tire colliders have the same radius as the wheel itself, and is centered on the wheel

gentle nacelle
#

make the green circle the same size as the red circle

white hatch
#

How is your wheel setup in unity?

#

Like hierarchy

#

what about the wheels, and in game?

idle hill
#

show the hierarchy for the Wheels

#

maybe the names are wrong

sweet rivet
#

@white hatch King, could you do me a favor and help me understand a little about the issue of speed and rpm?: C I'm trying to set my car to run at 180 kph and I haven't been able to since I haven't understood much of the guide: c if you know how to calculate it it would help me a lot king

white hatch
#

If I understood correctly, the game determines the engine RPM based on the wheel RPM (which is driven by the vehicle physics and current gear ratio)

#

There is a not on how to calculate it in the guide, relative to the speed you would want the car to change gears at

sweet rivet
sweet rivet
frigid igloo
#

180 km/h = 50 m/s = 3000 m/min
3000/3.77 = 795 Wheel RPM
Target Engine RPM: 3500 RPM
3500 / 795 = 4.4

sweet rivet
frigid igloo
#

Try increasing the RPM

#

Also whats your wheel radius?

#

Is it not the same as the vanilla radius?

sweet rivet
frigid igloo
#

It should be 0.6m that should be the vanilla one

sweet rivet
#

Yes its the same

frigid igloo
#

3.77m is the circumference

sweet rivet
#

Sorry, if I got confused hahaha, yes it is exactly 0.6m

sweet rivet
frigid igloo
#

So you added the forward Gear ratio of 4.4 right?

sweet rivet
frigid igloo
#

Bro

sweet rivet
#

I put it in enginemaxtorque, isn't that right?

frigid igloo
#

No.

#

Its a Gear Ratio

#

Add it as the 3rd Gear

sweet rivet
#

king, I don't know how to get the enginemaxtorque nor where to locate the one you sent me

frigid igloo
#

Just use the vanilla one

#

5.75 whatever

sweet rivet
#

something like that?

frigid igloo
#

No

#

It should be

#

14
8.75
4.4

#

Order matters

sweet rivet
#

aaah ok perfect, then like this

frigid igloo
#

Try decreasing the GearShift_UpThresholdRPM

#

To like 3500

sweet rivet
#

Now the speed increases but from one moment to the next it crashes. In short, it reaches 3500 rpm and drops to 1000 rpm.

frigid igloo
#

Hm try increasing the Torque and Idle, Max RPM

sweet rivet
#

el problema sigue rey

#

@frigid igloo king a question, where do these two numbers come from, what parameters do they come from? And how do you get the result from them?

frigid igloo
#

So basically

#

The engine runs at a certain RPM

#

And the Gear Ratio is how much of that RPM that gets to the wheels

frigid igloo
#

So if the engine is running at 3000 RPM and you want the wheels to run at 800 RPM then the Gear ratio should be
3000 / 800 = 3.75

frigid igloo
sweet rivet
#

To calculate the values ​​of ReverseGearRatio, ForwardGearRatios, GearShift_Duration, GearShift_Interval, EngineIdleRPM, EngineMaxRPM, and EngineMaxTorque from the information provided, you need to follow these steps:

###ReverseGearRatio

You already have the value of ReverseGearRatio which is 5.

ForwardGearRatios

To calculate ForwardGearRatios, you need to define a series of gear ratios that allow the vehicle to operate efficiently at different speeds and conditions. Based on the example given, where a gear ratio of 9.89 was calculated for a specific speed, you can follow a similar process for different speeds. Here is a basic example of how you could configure your gear ratios:

  1. First gear: 9.89 (based on given calculation)
  2. Second gear: 6.50
  3. Third gear: 4.50
  4. Fourth gear: 3.00
  5. Fifth gear: 2.00

This is an approximation, and exact values ​​may vary depending on vehicle and purpose.

GearShift_Duration and GearShift_Interval

The duration of the gear shift (GearShift_Duration) and the interval between gear changes (GearShift_Interval) depend on the design of the vehicle's transmission system. Here are some typical values:

  • GearShift_Duration: 0.5 seconds
  • GearShift_Interval: 2 seconds

EngineIdleRPM and EngineMaxRPM

Idle RPM (EngineIdleRPM) and Maximum RPM (EngineMaxRPM) can be set based on the vehicle's engine type. Based on the text:

  • EngineIdleRPM: 1000 RPM (this is a reasonable assumption for a typical engine)
  • EngineMaxRPM: 6000 RPM (also a reasonable assumption)

###EngineMaxTorque

The maximum engine torque (EngineMaxTorque) is the maximum torque that the engine can generate. Let's assume EngineMaxTorque is 400 Nm, but this may vary depending on the vehicle's specific engine.

Complete Configuration Example

#
ReverseGearRatio: 5
ForwardGearRatios: [9.89, 6.50, 4.50, 3.00, 2.00]
GearShift_Duration: 0.5
GearShift_Interval: 2
EngineIdleRPM: 1000
EngineMaxRPM: 6000
EngineMaxTorque: 400

Calculation and Adjustment

It is important to adjust and test these values ​​in a controlled environment to ensure that the vehicle operates correctly and efficiently under various driving conditions. These calculations are a starting point and may require fine adjustments depending on the specific characteristics of the vehicle and its powertrain.

sweet rivet
#

<@&553315866146766850> King, finally, how do I make the vehicle turn faster? I have a speed of 100 kph but the vehicle turns very little, even when it is at low speeds it is difficult to take a curve, you have to brake and go back to be able to take it wide open, do you have any way in which I can modify this? and let me turn more?

frigid igloo
#

Steer_Min and Steer_Max

#

Min is for low speed and Max is for high speed

sweet rivet
#

I even put it at 60 and the same xddd

frigid igloo
#

Try increasing it to like 180

#

For both Steer_Min and Steer_Max

#

Or even higher

#

300?