b2w_setBodyTargetTransform function

  1. @Native<Void Function(Int64, Float, Float, Float, Float, Int32)>(ffi.Int64, ffi.Float, ffi.Float, ffi.Float, ffi.Float, ffi.Int32)>()
void b2w_setBodyTargetTransform(
  1. int bodyHandle,
  2. double x,
  3. double y,
  4. double angle,
  5. double timeStep,
  6. int wake,
)

Move a kinematic body to a transform over the next timeStep, by giving it the velocity that gets it there. Bodies standing on it are carried along, which teleporting would not do. wake != 0 wakes it.

Implementation

@ffi.Native<
  ffi.Void Function(
    ffi.Int64,
    ffi.Float,
    ffi.Float,
    ffi.Float,
    ffi.Float,
    ffi.Int32,
  )
>()
external void b2w_setBodyTargetTransform(
  int bodyHandle,
  double x,
  double y,
  double angle,
  double timeStep,
  int wake,
);