Skip to content

Commit

Permalink
reduce some of the stuff spawned with colliders in the xpbd example
Browse files Browse the repository at this point in the history
  • Loading branch information
shnewto committed Mar 1, 2024
1 parent b0eee47 commit c37b512
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions examples/xpbd_2d_colliders.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ use bevy_rapier_collider_gen::xpbd_2d::{
single_heightfield_collider_translated,
};
use bevy_rapier_collider_gen::*;
use bevy_xpbd_2d::components::{
CoefficientCombine, ColliderDensity, Friction, GravityScale, Restitution, RigidBody,
};
use bevy_xpbd_2d::components::RigidBody;
use bevy_xpbd_2d::math::Vector;
use bevy_xpbd_2d::plugins::debug::DebugRender;
use bevy_xpbd_2d::plugins::{PhysicsDebugPlugin, PhysicsPlugins};
Expand Down Expand Up @@ -86,10 +84,6 @@ pub fn car_spawn(
},
Car { initial_xyz },
RigidBody::Dynamic,
Friction::ZERO.with_combine_rule(CoefficientCombine::Min),
Restitution::ZERO.with_combine_rule(CoefficientCombine::Min),
ColliderDensity(2.0),
GravityScale(1.5),
DebugRender::default().with_collider_color(Color::VIOLET),
));
}
Expand Down Expand Up @@ -150,10 +144,6 @@ pub fn boulders_spawn(
fill,
transform,
RigidBody::Dynamic,
Friction::ZERO.with_combine_rule(CoefficientCombine::Min),
Restitution::ZERO.with_combine_rule(CoefficientCombine::Min),
ColliderDensity(2.0),
GravityScale(1.5),
DebugRender::default().with_collider_color(Color::VIOLET),
));
}
Expand Down

0 comments on commit c37b512

Please sign in to comment.