CharacterBody3D constructor

CharacterBody3D({
  1. double radius = 0.3,
  2. double height = 1.8,
  3. double maxSlopeAngle = 0.8726646259971648,
  4. double stepHeight = 0.4,
  5. double stickToFloor = 0.5,
  6. double mass = 70.0,
  7. double pushStrength = 100.0,
  8. double gravityScale = 1.0,
  9. bool useGravity = true,
  10. int layer = 0,
  11. bool detectable = true,
})

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

Implementation

CharacterBody3D({
  this.radius = 0.3,
  this.height = 1.8,
  this.maxSlopeAngle = 0.8726646259971648,
  this.stepHeight = 0.4,
  this.stickToFloor = 0.5,
  this.mass = 70.0,
  this.pushStrength = 100.0,
  this.gravityScale = 1.0,
  this.useGravity = true,
  this.layer = 0,
  this.detectable = true,
});