KinematicCharacterController constructor
KinematicCharacterController({
- Vector3? up,
- double offset = 0.01,
- bool slide = true,
- double maxSlopeClimbAngle = pi / 4,
- double minSlopeSlideAngle = pi / 4,
- double? snapToGround = 0.1,
- bool autostep = false,
- double autostepMaxHeight = 0.3,
- double autostepMinWidth = 0.1,
- bool autostepIncludeDynamicBodies = true,
- 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);