Skip to content

Characters can climb up 90 degree corners when friction is enabled #93

@janhohenheim

Description

@janhohenheim

Versions

  • bevy v0.15.3
  • avian3d v0.2.1
  • bevy-tnua v0.22.0
  • bevy-tnua-avian3d v0.3.1

Setup:

The map looks like this:

Image

The walls are two Avian convex hulls.
When I go into the corner and perform a small jump, my character floats up the walls:

Image

Workaround

I can insert the following into the player entity to fix the issue:

Friction {
    dynamic_coefficient: 0.0,
    static_coefficient: 0.0,
    combine_rule: CoefficientCombine::Multiply,
},

Reproduction

this commit fixes my issue, so use the repo before it to reproduce the bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions