rapier icon indicating copy to clipboard operation
rapier copied to clipboard

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

Open akappel opened this issue 2 years ago • 3 comments

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!

akappel avatar Jun 07 '22 14:06 akappel