Jondolf / avian

ECS-driven 2D and 3D physics engine for the Bevy game engine.
https://crates.io/crates/avian3d
Apache License 2.0
1.54k stars 120 forks source link

Issue: Incorrect inelastic collision #560

Open Badgerup1510 opened 5 days ago

Badgerup1510 commented 5 days ago

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.