public KinimaticMotor(KinimaticMotorConfig config, Rigidbody body, DirectionProvider dirProvider, float groundCheckDistance, LayerMask groundLayerMask, float wallCheckDistance, float wallCheckHeight) { this.body = body; body.isKinematic = false; this.config = config; this.dirProvider = dirProvider; this.groundLayerMask = groundLayerMask; this.groundCheckDistance = groundCheckDistance; this.wallCheckDistance = wallCheckDistance; this.wallCheckHeight = wallCheckHeight; }
public KinimaticMotor GetMotor(KinimaticMotorConfig config, Rigidbody body, DirectionProvider dirProvider) { return(new KinimaticMotor(config, body, dirProvider, groundCheckDistance, groundLayerMask, wallCheckDistance, wallCheckHeight)); }