ThirdPersonControllerComponent constructor
ThirdPersonControllerComponent({
- double walkSpeed = 4.5,
- double runMultiplier = 1.8,
- double turnSpeed = 12.0,
- double jumpVelocity = 6.5,
- double gravity = 18.0,
- double maxSlopeAngleDegrees = 45.0,
- double coyoteTimeWindow = 0.12,
- double jumpBufferWindow = 0.15,
- double landingJumpDelay = 0.20,
- int groundLayerMask = 0xFFFFFFFF,
- double? groundPlaneHeight,
- double footOffset = 0.0,
- double obstacleRadius = 0.85,
- double obstacleHeight = 1.8,
Implementation
ThirdPersonControllerComponent({
this.walkSpeed = 4.5,
this.runMultiplier = 1.8,
this.turnSpeed = 12.0,
this.jumpVelocity = 6.5,
this.gravity = 18.0,
this.maxSlopeAngleDegrees = 45.0,
this.coyoteTimeWindow = 0.12,
this.jumpBufferWindow = 0.15,
this.landingJumpDelay = 0.20,
this.groundLayerMask = 0xFFFFFFFF,
this.groundPlaneHeight,
this.footOffset = 0.0,
this.obstacleRadius = 0.85,
this.obstacleHeight = 1.8,
});