interpolateTransforms method

  1. @override
void interpolateTransforms(
  1. double alpha
)

Interpolates dynamic-body node transforms between the previous and current physics steps for smooth rendering when the frame rate is not a multiple of the physics rate.

alpha is the accumulator fraction in [0, 1]: 0 snaps to the previous step, 1 snaps to the current step.

Called by the scene driver after the substepping loop. User code should not call this directly.

Implementation

@override
void interpolateTransforms(double alpha) {
  // No dynamics, no transforms to interpolate. Static and kinematic
  // bodies move only when the user moves the owning node.
}