KinematicCharacterController constructor

KinematicCharacterController({
  1. Vector3? up,
  2. double offset = 0.01,
  3. bool slide = true,
  4. double maxSlopeClimbAngle = pi / 4,
  5. double minSlopeSlideAngle = pi / 4,
  6. double? snapToGround = 0.1,
  7. bool autostep = false,
  8. double autostepMaxHeight = 0.3,
  9. double autostepMinWidth = 0.1,
  10. bool autostepIncludeDynamicBodies = true,
  11. double mass = 0.0,
})

Implementation

KinematicCharacterController({
  Vector3? up,
  this.offset = 0.01,
  this.slide = true,
  this.maxSlopeClimbAngle = pi / 4,
  this.minSlopeSlideAngle = pi / 4,
  this.snapToGround = 0.1,
  this.autostep = false,
  this.autostepMaxHeight = 0.3,
  this.autostepMinWidth = 0.1,
  this.autostepIncludeDynamicBodies = true,
  this.mass = 0.0,
}) : up = up ?? Vector3(0, 1, 0);