CharacterSettings3D constructor

CharacterSettings3D({
  1. double radius = 0.3,
  2. double halfHeight = 0.6,
  3. Vector3? up,
  4. double maxSlopeAngle = 0.8726646259971648,
  5. double mass = 70,
  6. double maxStrength = 100,
  7. int layer = 0,
  8. bool innerBody = true,
  9. int userData = 0,
})

A character 1.8 m tall and 0.3 m in radius, by default.

Implementation

CharacterSettings3D({
  this.radius = 0.3,
  this.halfHeight = 0.6,
  Vector3? up,
  this.maxSlopeAngle = 0.8726646259971648,
  this.mass = 70,
  this.maxStrength = 100,
  this.layer = 0,
  this.innerBody = true,
  this.userData = 0,
}) : up = up ?? Vector3(0, -1, 0);