JPH_BodyInterface_ApplyBuoyancyImpulse function

  1. @Native<Bool Function(Pointer<JPH_BodyInterface>, JPH_BodyID, Pointer<JPH_Vec3>, Pointer<JPH_Vec3>, Float, Float, Float, Pointer<JPH_Vec3>, Pointer<JPH_Vec3>, Float)>(ffi.Pointer<JPH_BodyInterface>, JPH_BodyID, ffi.Pointer<JPH_RVec3>, ffi.Pointer<JPH_Vec3>, ffi.Float, ffi.Float, ffi.Float, ffi.Pointer<JPH_Vec3>, ffi.Pointer<JPH_Vec3>, ffi.Float)>()
bool JPH_BodyInterface_ApplyBuoyancyImpulse(
  1. Pointer<JPH_BodyInterface> bodyInterface,
  2. int bodyId,
  3. Pointer<JPH_Vec3> surfacePosition,
  4. Pointer<JPH_Vec3> surfaceNormal,
  5. double buoyancy,
  6. double linearDrag,
  7. double angularDrag,
  8. Pointer<JPH_Vec3> fluidVelocity,
  9. Pointer<JPH_Vec3> gravity,
  10. double deltaTime,
)

Implementation

@ffi.Native<
  ffi.Bool Function(
    ffi.Pointer<JPH_BodyInterface>,
    JPH_BodyID,
    ffi.Pointer<JPH_RVec3>,
    ffi.Pointer<JPH_Vec3>,
    ffi.Float,
    ffi.Float,
    ffi.Float,
    ffi.Pointer<JPH_Vec3>,
    ffi.Pointer<JPH_Vec3>,
    ffi.Float,
  )
>()
external bool JPH_BodyInterface_ApplyBuoyancyImpulse(
  ffi.Pointer<JPH_BodyInterface> bodyInterface,
  int bodyId,
  ffi.Pointer<JPH_RVec3> surfacePosition,
  ffi.Pointer<JPH_Vec3> surfaceNormal,
  double buoyancy,
  double linearDrag,
  double angularDrag,
  ffi.Pointer<JPH_Vec3> fluidVelocity,
  ffi.Pointer<JPH_Vec3> gravity,
  double deltaTime,
);