tweakity-tweak

This commit is contained in:
Joe Ardent 2023-01-25 17:39:32 -08:00
parent 1b559f3d44
commit e79661b7db
2 changed files with 4 additions and 3 deletions

View file

@ -58,7 +58,7 @@ impl Default for WheelConfig {
rear_back: 1.1, rear_back: 1.1,
y: -1.5, y: -1.5,
limits: [-1.0, 1.0], limits: [-1.0, 1.0],
stiffness: 20.0, stiffness: 100.0,
damping: 1.0, damping: 1.0,
radius: 0.3, radius: 0.3,
} }
@ -236,7 +236,7 @@ fn spawn_tires(
let wheel_collider = Collider::ball(wheel_rad); let wheel_collider = Collider::ball(wheel_rad);
let mass_props = ColliderMassProperties::Density(0.001); let mass_props = ColliderMassProperties::Density(0.001);
let damping = 0.3; let damping = conf.damping;
let prismatic = PrismaticJointBuilder::new(Vec3::Y) let prismatic = PrismaticJointBuilder::new(Vec3::Y)
.local_anchor1(offset) .local_anchor1(offset)
.limits(limits) .limits(limits)

View file

@ -37,8 +37,9 @@ fn update_debug_cam(mut offset: ResMut<DebugCamOffset>, mut keys: ResMut<Input<K
} }
if keys.get_just_released().len() > 0 { if keys.get_just_released().len() > 0 {
let unpressed = keys.just_released(KeyCode::LShift) || keys.just_released(KeyCode::RShift);
keys.reset_all(); keys.reset_all();
if shifted { if shifted && !unpressed {
keys.press(KeyCode::LShift); keys.press(KeyCode::LShift);
} }
} }