tweak restitution

This commit is contained in:
Joe Ardent 2023-02-02 23:05:43 -08:00
parent 8e1bae82a6
commit 936e3591d1

View file

@ -14,8 +14,6 @@ pub fn spawn_tires(
conf: &WheelConfig, conf: &WheelConfig,
meshterials: &mut Meshterial, meshterials: &mut Meshterial,
) { ) {
//return;
// re-set the collision group
let (membership, filter) = BIKE_WHEEL_COLLISION_GROUP; let (membership, filter) = BIKE_WHEEL_COLLISION_GROUP;
let wheels_collision_group = CollisionGroups::new(membership, filter); let wheels_collision_group = CollisionGroups::new(membership, filter);
let wheel_y = conf.y; let wheel_y = conf.y;
@ -112,6 +110,7 @@ pub fn spawn_tires(
friction, friction,
CyberWheel, CyberWheel,
ExternalForce::default(), ExternalForce::default(),
Restitution::new(0.2),
)) ))
.with_children(|wheel| { .with_children(|wheel| {
wheel.spawn(tire_spundle).insert(pbr_bundle.clone()).insert( wheel.spawn(tire_spundle).insert(pbr_bundle.clone()).insert(