JPH_BodyInterface_ApplyBuoyancyImpulse function
- @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(
- Pointer<JPH_BodyInterface> bodyInterface,
- int bodyId,
- Pointer<JPH_Vec3> surfacePosition,
- Pointer<JPH_Vec3> surfaceNormal,
- double buoyancy,
- double linearDrag,
- double angularDrag,
- Pointer<JPH_Vec3> fluidVelocity,
- Pointer<JPH_Vec3> gravity,
- 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,
);