Skip to content

Collider::round_triangle doesn't have round edges no matter the border_radius #634

Description

@akappel

Hello,

I was attempting to use .insert(Collider::round_triangle(a, b, c, border_radius) in my project, but no value I provided to border_radius would cause the edges to be rounded.

My exact call was

...
.insert(Collider::round_triangle(
    Vec2::new(-128., 32.),
    Vec2::new(-128., -32.),
    Vec2::new(128., 0.),
    1000.0,
...

I ended up using Collider::round_convex_hull(...) for now, but figured I'd make a bug ticket in the meantime. I can provide further detail of necessary. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    2DThe issue is specifically about the 2D version of Rapier.3DThe issue is specifically about the 3D version of Rapier.C-EnhancementNew feature or requestC-User experiencePotential user-experience improvements

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions