// method: begin a sweep via the given sweeping controller // private void beginSweepVia(Controller sweepingController) { if (zeroVelocitiesBefore) { MoonMotionPlayer.zeroVelocities(); } potentialSweepStartingTime = time; potentialControllerSweepingPosition = sweepingController.position(); potentialSweepStartingPosition = MoonMotionBody.position; potentialCurrentTargetPosition = sweepingController.position.positionAlong ( ( operations.firstOperatedOperation().inputs.has(Controller.Input.touchpad) ? sweepingController.relativeTouchpadDirectionWhereZeroesIsForward : sweepingController.forward() ).withVectralYZeroed(), sweepDistance ); SkiingSettings.singleton.heldVersusToggled = false; if (togglesSkiing) { Skier.enableSkiing(); } }
// method: begin a dash to the given provided raycast hit // private void beginDashTo(object raycastHit_RaycastHitProvider) { if (zeroVelocitiesBefore) { MoonMotionPlayer.zeroVelocities(); } if (temporarilyLockYPosition) { lastYPositionLockednessBeforeDashing = MoonMotionPlayer.positionYLockedness; MoonMotionPlayer.lockPositionY(); } RaycastHit raycastHit = raycastHit_RaycastHitProvider.provideRaycastHit(); potentialDashStartingPosition = MoonMotionBody.position; potentialCurrentTargetPosition = raycastHit.position(); potentialCurrentTargetCollider = raycastHit.collider; SkiingSettings.singleton.heldVersusToggled = false; if (togglesSkiing) { Skier.enableSkiing(); } }
// updating // // at the start: // private void Start() { if (enableSkiingAtStart) { Skier.enableSkiing(); } }
// updating // // at the start: // private void Start() { frictionNonskiing = capsuleCollider.material; if (enableSkiingAtStart) { Skier.enableSkiing(); } }