setAngularVelocity method

void setAngularVelocity(
  1. Vector3 velocity
)

Sets its spin before the next step.

Implementation

void setAngularVelocity(Vector3 velocity) =>
    (pendingAngularVelocity ??= Vector3.zero()).setFrom(velocity);