#I need help with the new physics for unturned!:C
1 messages · Page 1 of 1 (latest)
@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
make the green circle the same size as the red circle
How is your wheel setup in unity?
Like hierarchy
what about the wheels, and in game?
@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
GUID 32-digit hexadecimal: Refer to GUID documentation. Type enum( Vehicle) Rarity enum( Common, Uncommon, Rare, Epic, Legendary, Mythical): Rarity of the vehicle, as text shown in menus and colors...
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
Rey, I'm trying to set the vehicle to run at 180 kph, but I don't really understand how to do it, since I don't understand the guide very much, could you help me with that, I would appreciate it very much.
180 km/h = 50 m/s = 3000 m/min
3000/3.77 = 795 Wheel RPM
Target Engine RPM: 3500 RPM
3500 / 795 = 4.4
king and where does each one place them? I just don't understand where each one goes. If you can place them for me, I'll tell you if it's from the engineidleRPM, etc.
Try increasing the RPM
Also whats your wheel radius?
Is it not the same as the vanilla radius?
3.77
It should be 0.6m that should be the vanilla one
Yes its the same
3.77m is the circumference
Sorry, if I got confused hahaha, yes it is exactly 0.6m
yes
So you added the forward Gear ratio of 4.4 right?
Bro
I put it in enginemaxtorque, isn't that right?
king, I don't know how to get the enginemaxtorque nor where to locate the one you sent me
Now the speed increases but from one moment to the next it crashes. In short, it reaches 3500 rpm and drops to 1000 rpm.
Hm try increasing the Torque and Idle, Max RPM
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?
So basically
The engine runs at a certain RPM
And the Gear Ratio is how much of that RPM that gets to the wheels
Basically this
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
What RPM you want the wheels to run at you calculate using this formula
something like that?
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:
- First gear: 9.89 (based on given calculation)
- Second gear: 6.50
- Third gear: 4.50
- Fourth gear: 3.00
- 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 secondsGearShift_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.
<@&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?
King, I have it at 45 max and the vehicle turns very little.
I even put it at 60 and the same xddd