b2w_addRoundedPolygonShape function
Attach a convex polygon grown by cornerRadius, which rounds its corners. verts as for b2w_addPolygonShape, cut the same way past 8 points (the pieces then overlap along their seams by the rounding).
Implementation
@ffi.Native<
ffi.Void Function(
ffi.Int64,
ffi.Pointer<ffi.Float>,
ffi.Int32,
ffi.Float,
ffi.Float,
ffi.Float,
ffi.Float,
)
>()
external void b2w_addRoundedPolygonShape(
int bodyHandle,
ffi.Pointer<ffi.Float> verts,
int count,
double cornerRadius,
double density,
double friction,
double restitution,
);