b2w_addSegmentShape function
Attach a line segment from (x1, y1) to (x2, y2). It has no area, so it adds no mass; use it on static bodies.
Implementation
@ffi.Native<
ffi.Void Function(
ffi.Int64,
ffi.Float,
ffi.Float,
ffi.Float,
ffi.Float,
ffi.Float,
ffi.Float,
ffi.Float,
)
>()
external void b2w_addSegmentShape(
int bodyHandle,
double x1,
double y1,
double x2,
double y2,
double density,
double friction,
double restitution,
);