getCollidingBodies method

TypedArray<Node3D> getCollidingBodies()

Implementation

TypedArray<Node3D> getCollidingBodies() {
  return using((arena) {
    Pointer<Pointer<Void>> ptrArgArray = nullptr;
    final retPtr = arena.allocate<GDExtensionTypePtr>(TypedArray.sTypeInfo.size);
    gde.ffiBindings.gde_object_method_bind_ptrcall(
      _bindings.methodGetCollidingBodies, nativePtr.cast(), ptrArgArray, retPtr.cast());
    return TypedArray<Node3D>.copyPtr(retPtr.cast());
  });
}