addSphere method

int addSphere(
  1. int body,
  2. double radius, {
  3. Vec3 position = Vec3.zero,
  4. Quat rotation = Quat.identity,
})

Adds a sphere collider; see addBox.

Implementation

int addSphere(int body, double radius, {Vec3 position = Vec3.zero, Quat rotation = Quat.identity}) =>
    _addCollider(body, FpShapeKind.FP_SHAPE_KIND_SPHERE, radius, 0, 0, position, rotation);