b2w_getContactBeginEvent function
Read the index-th contact that began: the two bodies, and the contact normal, pointing from A to B (zeros if the contact has gone since).
Implementation
@ffi.Native<
ffi.Void Function(
ffi.Int64,
ffi.Int32,
ffi.Pointer<ffi.Int64>,
ffi.Pointer<ffi.Int64>,
ffi.Pointer<ffi.Float>,
ffi.Pointer<ffi.Float>,
)
>()
external void b2w_getContactBeginEvent(
int worldHandle,
int index,
ffi.Pointer<ffi.Int64> outBodyA,
ffi.Pointer<ffi.Int64> outBodyB,
ffi.Pointer<ffi.Float> outNormalX,
ffi.Pointer<ffi.Float> outNormalY,
);