Currently trying to make a 3d first person character. i have given the entity with the collider a restitution of 0.0. Although this does not work, the player character still bounces upon reaching sufficient height and falling. I have attempted to apply a restitution of 0.0 too the ground as well with no avail.
This is the current code:
// Spawn the parent entity with the collider
let parent = commands.spawn((
TransformBundle::from_transform(Transform::from_xyz(0.0, 4.5, 0.0)),
RigidBody::Dynamic,
Collider::capsule(1.0, 3.0),
LockedAxes::new().lock_rotation_x().lock_rotation_z(),
Restitution::new(1.0).with_combine_rule(CoefficientCombine::Min),
Player,
)).id();
for clarity o tried with and without the comibine rule.
Currently trying to make a 3d first person character. i have given the entity with the collider a restitution of 0.0. Although this does not work, the player character still bounces upon reaching sufficient height and falling. I have attempted to apply a restitution of 0.0 too the ground as well with no avail. This is the current code: // Spawn the parent entity with the collider let parent = commands.spawn(( TransformBundle::from_transform(Transform::from_xyz(0.0, 4.5, 0.0)), RigidBody::Dynamic, Collider::capsule(1.0, 3.0), LockedAxes::new().lock_rotation_x().lock_rotation_z(), Restitution::new(1.0).with_combine_rule(CoefficientCombine::Min), Player, )).id();