jj_body_create function
Makes a body of shape (a joltc shape; the body takes its own
reference) and adds it to the world. Returns 0 when it cannot be made: a
dead world, a full world, a layer out of range, or a shape that must be
static (a mesh or height field) on a dynamic body.
Implementation
@ffi.Native<
ffi.Int64 Function(
ffi.Int64,
ffi.Pointer<JPH_Shape>,
ffi.Pointer<JJ_BodySettings>,
)
>()
external int jj_body_create(
int world,
ffi.Pointer<JPH_Shape> shape,
ffi.Pointer<JJ_BodySettings> settings,
);