JPH_HeightFieldShape_ProjectOntoSurface function

  1. @Native<Bool Function(Pointer<JPH_HeightFieldShape>, Pointer<JPH_Vec3>, Pointer<JPH_Vec3>, Pointer<JPH_BodyID>)>(ffi.Pointer<JPH_HeightFieldShape>, ffi.Pointer<JPH_Vec3>, ffi.Pointer<JPH_Vec3>, ffi.Pointer<JPH_SubShapeID>)>()
bool JPH_HeightFieldShape_ProjectOntoSurface(
  1. Pointer<JPH_HeightFieldShape> shape,
  2. Pointer<JPH_Vec3> localPosition,
  3. Pointer<JPH_Vec3> outSurfacePosition,
  4. Pointer<JPH_BodyID> outSubShapeID,
)

Implementation

@ffi.Native<
  ffi.Bool Function(
    ffi.Pointer<JPH_HeightFieldShape>,
    ffi.Pointer<JPH_Vec3>,
    ffi.Pointer<JPH_Vec3>,
    ffi.Pointer<JPH_SubShapeID>,
  )
>()
external bool JPH_HeightFieldShape_ProjectOntoSurface(
  ffi.Pointer<JPH_HeightFieldShape> shape,
  ffi.Pointer<JPH_Vec3> localPosition,
  ffi.Pointer<JPH_Vec3> outSurfacePosition,
  ffi.Pointer<JPH_SubShapeID> outSubShapeID,
);