feat: solver improvements + release v0.29.0 (#876)
* feat: solver improvements * feat: add function to get/set whether gyroscopic forces are enabled on a rigid-body * chore: switch to released versions of parry and wide instead of local patches * fix cargo doc * chore: typo fixes * chore: clippy fix * Release v0.29.0 * chore: more clippy fixes
This commit is contained in:
@@ -55,7 +55,7 @@ pub fn init_world(testbed: &mut Testbed) {
|
||||
.density(100.0)
|
||||
.collision_groups(InteractionGroups::new(CAR_GROUP, !CAR_GROUP));
|
||||
let body_rb = RigidBodyBuilder::dynamic()
|
||||
.position(body_position.into())
|
||||
.pose(body_position.into())
|
||||
.build();
|
||||
let body_handle = bodies.insert(body_rb);
|
||||
colliders.insert_with_parent(body_co, body_handle, &mut bodies);
|
||||
@@ -69,7 +69,7 @@ pub fn init_world(testbed: &mut Testbed) {
|
||||
|
||||
let axle_mass_props = MassProperties::from_ball(100.0, wheel_radius);
|
||||
let axle_rb = RigidBodyBuilder::dynamic()
|
||||
.position(wheel_center.into())
|
||||
.pose(wheel_center.into())
|
||||
.additional_mass_properties(axle_mass_props);
|
||||
let axle_handle = bodies.insert(axle_rb);
|
||||
|
||||
@@ -87,7 +87,7 @@ pub fn init_world(testbed: &mut Testbed) {
|
||||
.density(100.0)
|
||||
.collision_groups(InteractionGroups::new(CAR_GROUP, !CAR_GROUP))
|
||||
.friction(1.0);
|
||||
let wheel_rb = RigidBodyBuilder::dynamic().position(wheel_center.into());
|
||||
let wheel_rb = RigidBodyBuilder::dynamic().pose(wheel_center.into());
|
||||
let wheel_handle = bodies.insert(wheel_rb);
|
||||
colliders.insert_with_parent(wheel_co, wheel_handle, &mut bodies);
|
||||
colliders.insert_with_parent(wheel_fake_co, wheel_handle, &mut bodies);
|
||||
|
||||
Reference in New Issue
Block a user