acquire method

Pointer<JPH_Shape>? acquire(
  1. Shape3D shape
)

shape for a new body: made, or shared. Null when Jolt cannot make it.

Implementation

Pointer<JPH_Shape>? acquire(Shape3D shape) {
  final ref = _ref(shape);
  if (ref == null) return null;
  ref.bodies++;
  _idle.remove(shape);
  return ref.pointer;
}