Tweak pacejka params a bit
This commit is contained in:
parent
31cb9879cc
commit
b6866f53f3
@ -393,7 +393,7 @@ update_runtime_world :: proc(runtime_world: ^Runtime_World, dt: f32) {
|
||||
front_wheels := turn_wheels
|
||||
back_wheels := drive_wheels
|
||||
|
||||
DRIVE_IMPULSE :: 4000
|
||||
DRIVE_IMPULSE :: 2000
|
||||
BRAKE_IMPULSE :: 500
|
||||
TURN_ANGLE :: -f32(30) * math.RAD_PER_DEG
|
||||
// 68% front, 32% rear
|
||||
|
@ -4,7 +4,7 @@ import "core:math"
|
||||
|
||||
Pacejka96_Params :: [11]f32
|
||||
|
||||
DEFAULT_PACEJKA96_PARAMS :: Pacejka96_Params{1.6, 0, 1688, 0, 229, 0, 0, 0, -10, 0, 0}
|
||||
DEFAULT_PACEJKA96_PARAMS :: Pacejka96_Params{1.65, 1, 1750, 0, 229, 0.0, 0, 0, -12, 0, 0}
|
||||
|
||||
// X is slip ratio percentage [-100, 100] or slip angle in degrees, where positive angle is turning left
|
||||
// Output is the friction coefficient
|
||||
|
@ -627,7 +627,7 @@ pgs_solve_suspension :: proc(sim_state: ^Sim_State, config: Solver_Config, dt: f
|
||||
vel_contact := body_vel_at_contact_patch
|
||||
|
||||
lateral_vel := lg.dot(right, vel_contact)
|
||||
friction_clamp := -v.spring_impulse * lat_friction
|
||||
friction_clamp := abs(v.spring_impulse) * lat_friction
|
||||
|
||||
incremental_impulse := -inv_w_normal * lateral_vel
|
||||
new_total_impulse := clamp(
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user