Files
MouseTrailCollector/Assets/Character Controller/Core/Documentation/Character Controller Manual (Printable).html
T
2026-09-23 09:30:04 +08:00

850 lines
49 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Motion Core Character Controller - Manual</title>
<style>
:root{
--ink:#1c2330; --muted:#5b6472; --line:#dfe3ea; --accent:#3b5bdb;
--accent-soft:#eef2ff; --code-bg:#f5f6f8; --warn:#fff4e5; --warn-line:#f0b429;
}
*{box-sizing:border-box;}
html{-webkit-print-color-adjust:exact; print-color-adjust:exact;}
body{
font-family:"Segoe UI",Arial,Helvetica,sans-serif; color:var(--ink);
line-height:1.55; margin:0; font-size:15px; background:#fff;
}
.page{max-width:820px; margin:0 auto; padding:40px 48px;}
h1,h2,h3{line-height:1.25; font-weight:700;}
h2.sec{
font-size:22px; margin:34px 0 12px; padding-bottom:6px;
border-bottom:2px solid var(--accent); color:var(--ink);
}
h3{font-size:17px; margin:22px 0 8px; color:#28324a;}
p{margin:10px 0;}
a{color:var(--accent); text-decoration:none;}
ul,ol{margin:10px 0 10px 24px; padding:0;}
li{margin:4px 0;}
code{
font-family:"Cascadia Code",Consolas,"Courier New",monospace; font-size:.88em;
background:var(--code-bg); padding:1px 5px; border-radius:4px; color:#294;
}
pre{
background:var(--code-bg); border:1px solid var(--line); border-radius:8px;
padding:14px 16px; overflow-x:auto; margin:12px 0;
}
pre code{background:none; padding:0; color:var(--ink); font-size:.85em;}
.callout{
background:var(--accent-soft); border-left:4px solid var(--accent);
border-radius:6px; padding:12px 16px; margin:16px 0;
}
.callout-title{font-weight:700; color:var(--accent); font-size:13px;
text-transform:uppercase; letter-spacing:.04em; margin-bottom:2px;}
.callout p{margin:0;}
/* Screenshot slots */
figure.shot{margin:18px 0; page-break-inside:avoid;}
.shot-frame{border:1px solid var(--line); border-radius:8px; overflow:hidden;}
.shot-frame img{display:block; width:100%; height:auto;}
.shot-frame.missing{
border:2px dashed var(--accent); background:repeating-linear-gradient(
45deg,#fafbff,#fafbff 12px,#f1f4ff 12px,#f1f4ff 24px);
}
.shot-slot{display:none; padding:26px 22px; text-align:center;}
.shot-frame.missing .shot-slot{display:block;}
.shot-tag{display:inline-block; background:var(--accent); color:#fff;
font-size:11px; font-weight:700; letter-spacing:.08em; padding:3px 10px;
border-radius:20px; margin-bottom:10px;}
.shot-cap{display:block; color:var(--ink); font-size:13.5px; max-width:520px;
margin:0 auto 8px;}
.shot-file{display:block; color:var(--muted); font-size:12px;
font-family:Consolas,monospace;}
figcaption{color:var(--muted); font-size:12.5px; margin-top:6px; text-align:center;
font-style:italic;}
/* Cover */
.cover{min-height:92vh; display:flex; flex-direction:column; justify-content:center;
text-align:center; page-break-after:always;}
.cover .kicker{color:var(--accent); font-weight:700; letter-spacing:.14em;
text-transform:uppercase; font-size:13px;}
.cover h1{font-size:40px; margin:14px 0 6px;}
.cover .sub{color:var(--muted); font-size:18px; max-width:560px; margin:0 auto;}
.cover .meta{margin-top:36px; color:var(--muted); font-size:14px;}
.cover .badge{display:inline-block; border:1px solid var(--line); border-radius:20px;
padding:5px 14px; margin:4px; font-size:13px;}
.print-note{background:var(--warn); border:1px solid var(--warn-line);
border-radius:8px; padding:12px 16px; margin:26px auto 0; max-width:560px;
font-size:13px; color:#7a5200; text-align:left;}
/* TOC */
.toc-page{page-break-after:always;}
.toc-page h2{font-size:24px; border-bottom:2px solid var(--accent);
padding-bottom:8px; margin-bottom:8px;}
ul.toc{list-style:none; margin:14px 0 0; padding:0;}
ul.toc li{margin:0;}
ul.toc a{display:block; padding:5px 0; border-bottom:1px dotted var(--line);}
li.toc-1 a{font-weight:600; color:var(--ink); font-size:15px;}
li.toc-2 a{padding-left:22px; color:var(--muted); font-size:13.5px;
border-bottom:none;}
@page{
size:A4; margin:20mm 16mm 18mm;
@bottom-center{content:"Motion Core Character Controller — Page " counter(page);
font-family:"Segoe UI",Arial,sans-serif; font-size:10px; color:#8a94a6;}
}
@media print{
.page{max-width:none; padding:0;}
.toc-hint{display:none;}
a{color:var(--ink);}
}
</style>
</head>
<body>
<div class="page">
<section class="cover">
<div class="kicker">Unity Asset Store · User Manual</div>
<h1>Motion Core Character Controller</h1>
<p class="sub">Core locomotion motor and optional first-person add-on for Unity 6.</p>
<div class="meta">
<div>
<span class="badge">Version 1.0.0</span>
<span class="badge">Unity 6000.0+</span>
<span class="badge">Input System</span>
</div>
<p style="margin-top:18px;">The Coder Guy</p>
</div>
<div class="print-note">
<strong>To create a PDF:</strong> open this file in any web browser, choose
<em>Print</em>, then <em>Save as PDF</em>. Page numbers appear in the footer
of every page automatically. The blue dashed boxes are screenshot slots — drop
annotated PNGs into the <code>Documentation/images/</code> folder using the
file names shown, and they replace the placeholders automatically.
</div>
</section>
<section class="toc-page">
<h2>Table of Contents</h2>
<p class="toc-hint" style="color:#8a94a6;font-size:13px;">
Section numbers match the headings throughout this manual. When printed,
each page is numbered in the footer.</p>
<ul class='toc'><li class="toc-1"><a href="#1-requirements">1. Requirements</a></li>
<li class="toc-1"><a href="#2-fast-setup">2. Fast Setup</a></li>
<li class="toc-1"><a href="#3-demo-scenes">3. Demo Scenes</a></li>
<li class="toc-1"><a href="#4-required-player-components">4. Required Player Components</a></li>
<li class="toc-2"><a href="#rigidbody">Rigidbody</a></li>
<li class="toc-2"><a href="#capsulecollider">CapsuleCollider</a></li>
<li class="toc-2"><a href="#inputhandler">InputHandler</a></li>
<li class="toc-2"><a href="#playercontroller">PlayerController</a></li>
<li class="toc-1"><a href="#5-editor-validation">5. Editor Validation</a></li>
<li class="toc-1"><a href="#6-movement-presets-and-tuning">6. Movement Presets and Tuning</a></li>
<li class="toc-1"><a href="#7-camera-setup">7. Camera Setup</a></li>
<li class="toc-2"><a href="#built-in-camerafollow">Built-In CameraFollow</a></li>
<li class="toc-2"><a href="#optional-cinemachine">Optional Cinemachine</a></li>
<li class="toc-1"><a href="#8-animation-integration">8. Animation Integration</a></li>
<li class="toc-1"><a href="#9-input-buffering-and-action-priority">9. Input Buffering and Action Priority</a></li>
<li class="toc-1"><a href="#10-moving-platforms">10. Moving Platforms</a></li>
<li class="toc-1"><a href="#11-stable-public-api">11. Stable Public API</a></li>
<li class="toc-1"><a href="#12-extension-patterns">12. Extension Patterns</a></li>
<li class="toc-2"><a href="#skillmodule">SkillModule</a></li>
<li class="toc-2"><a href="#inputextensionmodule">InputExtensionModule</a></li>
<li class="toc-1"><a href="#13-fps-add-on-setup">13. FPS Add-On Setup</a></li>
<li class="toc-1"><a href="#14-fps-systems">14. FPS Systems</a></li>
<li class="toc-2"><a href="#weapons">Weapons</a></li>
<li class="toc-2"><a href="#ads">ADS</a></li>
<li class="toc-2"><a href="#recoil">Recoil</a></li>
<li class="toc-2"><a href="#weapon-sway">Weapon Sway</a></li>
<li class="toc-2"><a href="#damage">Damage</a></li>
<li class="toc-2"><a href="#interaction">Interaction</a></li>
<li class="toc-2"><a href="#inventory">Inventory</a></li>
<li class="toc-2"><a href="#footsteps-and-surfaces">Footsteps And Surfaces</a></li>
<li class="toc-2"><a href="#hitmarkers">Hitmarkers</a></li>
<li class="toc-2"><a href="#projectiles">Projectiles</a></li>
<li class="toc-2"><a href="#parkour">Parkour</a></li>
<li class="toc-1"><a href="#15-fps-multiplayer-architecture">15. FPS Multiplayer Architecture</a></li>
<li class="toc-1"><a href="#16-troubleshooting">16. Troubleshooting</a></li>
<li class="toc-2"><a href="#character-does-not-move">Character Does Not Move</a></li>
<li class="toc-2"><a href="#input-map-missing">Input Map Missing</a></li>
<li class="toc-2"><a href="#bad-layer-masks">Bad Layer Masks</a></li>
<li class="toc-2"><a href="#jitter-on-stairs">Jitter On Stairs</a></li>
<li class="toc-2"><a href="#cannot-stand-from-crouch-or-prone">Cannot Stand From Crouch Or Prone</a></li>
<li class="toc-2"><a href="#camera-not-rotating">Camera Not Rotating</a></li>
<li class="toc-2"><a href="#fps-input-not-firing">FPS Input Not Firing</a></li>
<li class="toc-2"><a href="#slides-do-not-start">Slides Do Not Start</a></li>
<li class="toc-2"><a href="#jump-buffer-or-coyote-time-does-not-work">Jump Buffer Or Coyote Time Does Not Work</a></li>
<li class="toc-2"><a href="#moving-platforms-slip-or-jitter">Moving Platforms Slip Or Jitter</a></li>
<li class="toc-1"><a href="#17-migration-notes">17. Migration Notes</a></li>
<li class="toc-1"><a href="#18-support-checklist">18. Support Checklist</a></li></ul>
</section>
<main>
<p>This is the single user manual for the Motion Core Character Controller package. Use this document to set up, use, tune, troubleshoot, and extend the Core controller and the optional FPS add-on.</p>
<p>Package layout:</p>
<pre><code>Assets/Character Controller/
Core/
FPSFirstPerson/</code></pre>
<p>Core is standalone. The FPS add-on depends on Core.</p>
<div class="callout"><div class="callout-title">Start here</div><p><strong>New here? Read this order:</strong> Section 1 (Requirements) → Section 2 (Fast Setup) → Section 3 (Demo Scenes). Those three get you a working, playable controller in a few minutes. Everything after that is reference material you can read as you need it.</p></div>
<h2 id="1-requirements" class="sec">1. Requirements</h2>
<ul>
<li>Unity 6000.0 or newer.</li>
<li>Unity Input System package.</li>
<li>Unity UI package (<code>com.unity.ugui</code>) for demo HUD, validation UI, hitmarkers, and generated demo UI.</li>
<li>A player GameObject with <code>Rigidbody</code>, <code>CapsuleCollider</code>, <code>InputHandler</code>, and <code>PlayerController</code>.</li>
<li>Cinemachine is optional. <code>CharacterCinemachineAdapter</code> compiles without a Cinemachine assembly reference.</li>
<li>TextMeshPro is optional and only used by optional debug labels.</li>
</ul>
<p>The controller uses Unity 6 physics APIs such as <code>Rigidbody.linearVelocity</code>.</p>
<h2 id="2-fast-setup" class="sec">2. Fast Setup</h2>
<figure class="shot">
<div class="shot-frame">
<img src="images/setup-wizard.png" alt="The Setup Wizard (Tools &gt; Character Controller &gt; Setup Wizard). Highlight the Core/FPS toggle and the Create Controller button." onerror="this.closest('.shot-frame').classList.add('missing');this.remove();">
<div class="shot-slot"><span class="shot-tag">SCREENSHOT SLOT</span><span class="shot-cap">Capture: The Setup Wizard (Tools &gt; Character Controller &gt; Setup Wizard). Highlight the Core/FPS toggle and the Create Controller button.</span><span class="shot-file">images/setup-wizard.png</span></div>
</div>
<figcaption>Figure 1. The Setup Wizard (Tools &gt; Character Controller &gt; Setup Wizard). Highlight the Core/FPS toggle and the Create Controller button.</figcaption>
</figure>
<p>Use the setup wizard first. It is the recommended setup path for buyers.</p>
<ol>
<li>Import the asset.</li>
<li>Install or enable Unity Input System and Unity UI.</li>
<li>Open <code>Tools &gt; Character Controller &gt; Setup Wizard</code>.</li>
<li>Choose <code>Core</code> or <code>FPS</code>.</li>
<li>Press <code>Create Controller</code>, or disable <code>Create New Player</code> and assign an existing player.</li>
<li>Press <code>Validate</code> from the wizard.</li>
<li>Apply safe fixes if needed.</li>
<li>Press Play.</li>
</ol>
<p>The wizard adds required components, assigns input assets, applies a motor preset, sets common Rigidbody/CapsuleCollider values, creates a camera rig when requested, and wires FPS components when <code>FPS</code> is selected.</p>
<h2 id="3-demo-scenes" class="sec">3. Demo Scenes</h2>
<figure class="shot">
<div class="shot-frame">
<img src="images/core-demo-scene.png" alt="The Core demo scene in Play mode. Highlight the on-screen HUD and the &#x27;Press F1&#x27; overlay hint." onerror="this.closest('.shot-frame').classList.add('missing');this.remove();">
<div class="shot-slot"><span class="shot-tag">SCREENSHOT SLOT</span><span class="shot-cap">Capture: The Core demo scene in Play mode. Highlight the on-screen HUD and the &#x27;Press F1&#x27; overlay hint.</span><span class="shot-file">images/core-demo-scene.png</span></div>
</div>
<figcaption>Figure 2. The Core demo scene in Play mode. Highlight the on-screen HUD and the &#x27;Press F1&#x27; overlay hint.</figcaption>
</figure>
<p>Menu items:</p>
<ul>
<li><code>Tools &gt; Character Controller &gt; Build Demo Scene</code></li>
<li><code>Tools &gt; Character Controller &gt; Verify Core Demo Scene</code></li>
<li><code>Tools &gt; Character Controller &gt; Build FPS Demo Scene</code></li>
<li><code>Tools &gt; Character Controller &gt; Verify FPS Demo Scene</code></li>
</ul>
<p>Generated scenes:</p>
<ul>
<li>Core: <code>Assets/Character Controller/Core/Scenes/DemoScene.unity</code></li>
<li>FPS: <code>Assets/Character Controller/FPSFirstPerson/Scenes/FPSDemoScene.unity</code></li>
</ul>
<p>The Core demo includes flat ground, stairs, walkable and steep slopes, uneven terrain, a low ceiling, a ledge/jump section, a moving platform, and an over-height step marker.</p>
<p>The FPS demo includes weapon handling, ADS, recoil, weapon sway, interactions, targets, damage feedback, footsteps, surface detection, parkour, and a movement test gym.</p>
<p>In the demos, press <code>F1</code> to hide/show HUD and debug overlays.</p>
<h2 id="4-required-player-components" class="sec">4. Required Player Components</h2>
<figure class="shot">
<div class="shot-frame">
<img src="images/player-inspector.png" alt="The player GameObject Inspector. Highlight the Rigidbody, CapsuleCollider, InputHandler and PlayerController components." onerror="this.closest('.shot-frame').classList.add('missing');this.remove();">
<div class="shot-slot"><span class="shot-tag">SCREENSHOT SLOT</span><span class="shot-cap">Capture: The player GameObject Inspector. Highlight the Rigidbody, CapsuleCollider, InputHandler and PlayerController components.</span><span class="shot-file">images/player-inspector.png</span></div>
</div>
<figcaption>Figure 3. The player GameObject Inspector. Highlight the Rigidbody, CapsuleCollider, InputHandler and PlayerController components.</figcaption>
</figure>
<h3 id="rigidbody">Rigidbody</h3>
<p>Recommended settings:</p>
<ul>
<li><code>Use Gravity</code>: enabled.</li>
<li><code>Is Kinematic</code>: disabled.</li>
<li><code>Freeze Rotation</code>: enabled.</li>
<li><code>Interpolation</code>: <code>Interpolate</code>.</li>
<li><code>Collision Detection</code>: <code>Continuous Dynamic</code> for fast FPS movement.</li>
</ul>
<p><code>PlayerController</code> applies important safety settings at startup, and the validation window can fix common Rigidbody mistakes before play mode.</p>
<h3 id="capsulecollider">CapsuleCollider</h3>
<p>Recommended starting values:</p>
<ul>
<li><code>Radius</code>: <code>0.3</code>.</li>
<li><code>Height</code>: <code>1.8</code>.</li>
<li><code>Center</code>: <code>(0, 0.9, 0)</code>.</li>
<li><code>Direction</code>: Y axis.</li>
</ul>
<p>Use one main body collider on the player root. Put visual meshes, first-person arms, view models, and hitboxes on child objects.</p>
<h3 id="inputhandler">InputHandler</h3>
<p>Core serialized fields:</p>
<ul>
<li><code>Movement Actions Asset</code>: core <code>.inputactions</code> asset.</li>
<li><code>Movement Action Map Name</code>: defaults to <code>Control</code>.</li>
<li><code>Extension Action Assets</code>: optional add-on input assets, such as <code>FPSControls.inputactions</code>.</li>
</ul>
<p>Expected <code>Control</code> actions:</p>
<ul>
<li><code>Move</code>: <code>Vector2</code>.</li>
<li><code>Jump</code>: button.</li>
<li><code>Crouch</code>: button.</li>
<li><code>Prone</code>: button.</li>
<li><code>Dash</code>: button.</li>
<li><code>Walk</code>: button.</li>
<li><code>Sprint</code>: button.</li>
</ul>
<h3 id="playercontroller">PlayerController</h3>
<p>Important serialized fields:</p>
<ul>
<li><code>Motor Settings</code>: optional <code>CharacterMotorSettings</code> preset. When assigned, it drives movement tuning.</li>
<li><code>Speed</code>: target run speed.</li>
<li><code>SprintSpeed</code>: target sprint speed. This is not added on top of <code>Speed</code>.</li>
<li><code>WalkSpeed</code>, <code>CrouchSpeed</code>, <code>ProneSpeed</code>: target speeds for those modes.</li>
<li><code>GroundAcceleration</code>, <code>GroundDeceleration</code>: grounded response.</li>
<li><code>AirAcceleration</code>, <code>AirDeceleration</code>: air control.</li>
<li><code>JumpingForce</code>, <code>CoyoteTime</code>, <code>JumpBufferTime</code>, <code>GravityScale</code>, <code>MaxFallSpeed</code>: jump and fall behavior.</li>
<li><code>GroundLayerMask</code>, <code>StairsLayerMask</code>: surface detection layers.</li>
<li><code>MaxSlopeAngle</code>, <code>MaxStairsAngle</code>: walkability limits.</li>
<li><code>GroundSnapDistance</code>, <code>GroundStickForce</code>, <code>StepHeight</code>, <code>StepCheckDistance</code>, <code>StepProbeRadiusScale</code>: uneven terrain and stair behavior.</li>
<li><code>CeilingCheckDistance</code>: clearance margin for standing from crouch or prone.</li>
<li><code>UphillSlopeSpeedMultiplier</code>, <code>DownhillSlopeSpeedMultiplier</code>: slope speed modifiers.</li>
</ul>
<h2 id="5-editor-validation" class="sec">5. Editor Validation</h2>
<figure class="shot">
<div class="shot-frame">
<img src="images/validation-window.png" alt="The Validation Window after a passing check. Highlight the Validate button and the Apply Safe Fixes buttons." onerror="this.closest('.shot-frame').classList.add('missing');this.remove();">
<div class="shot-slot"><span class="shot-tag">SCREENSHOT SLOT</span><span class="shot-cap">Capture: The Validation Window after a passing check. Highlight the Validate button and the Apply Safe Fixes buttons.</span><span class="shot-file">images/validation-window.png</span></div>
</div>
<figcaption>Figure 4. The Validation Window after a passing check. Highlight the Validate button and the Apply Safe Fixes buttons.</figcaption>
</figure>
<p>Open <code>Tools &gt; Character Controller &gt; Validation Window</code>.</p>
<p>The validator checks:</p>
<ul>
<li>Required player components: <code>PlayerController</code>, <code>Rigidbody</code>, <code>CapsuleCollider</code>, <code>InputHandler</code>.</li>
<li>Rigidbody settings: non-kinematic, gravity enabled, rotation frozen, interpolation enabled, continuous collision recommended.</li>
<li>Capsule dimensions: positive radius/height, height at least twice the radius, valid stance heights.</li>
<li>Core input: movement asset assigned, <code>Control</code> map exists, required actions exist.</li>
<li>Layer masks: <code>GroundLayerMask</code> and <code>StairsLayerMask</code> are not empty.</li>
<li>FPS input: when FPS components are present, an extension input asset with the <code>FPS</code> map and expected actions is assigned.</li>
</ul>
<p>Safe fix buttons can:</p>
<ul>
<li>Add missing required components.</li>
<li>Assign same-object component references.</li>
<li>Apply recommended Rigidbody defaults.</li>
<li>Set empty ground/stair masks to <code>Default</code>.</li>
<li>Assign the included core input asset.</li>
<li>Add the included FPS input asset when the FPS extension is present.</li>
</ul>
<p>The validator does not guess project-specific layer names, custom action map names, or final movement tuning.</p>
<h2 id="6-movement-presets-and-tuning" class="sec">6. Movement Presets and Tuning</h2>
<figure class="shot">
<div class="shot-frame">
<img src="images/motor-settings.png" alt="The PlayerController Inspector. Highlight the Motor Settings field with a preset assigned." onerror="this.closest('.shot-frame').classList.add('missing');this.remove();">
<div class="shot-slot"><span class="shot-tag">SCREENSHOT SLOT</span><span class="shot-cap">Capture: The PlayerController Inspector. Highlight the Motor Settings field with a preset assigned.</span><span class="shot-file">images/motor-settings.png</span></div>
</div>
<figcaption>Figure 5. The PlayerController Inspector. Highlight the Motor Settings field with a preset assigned.</figcaption>
</figure>
<p>Included presets live in <code>Assets/Character Controller/Core/Data</code>:</p>
<ul>
<li><code>TacticalFPSMotorSettings</code>: grounded, responsive FPS baseline.</li>
<li><code>ArcadeFPSMotorSettings</code>: faster and more forgiving.</li>
<li><code>ThirdPersonRPGMotorSettings</code>: slower, animation-friendly movement.</li>
<li><code>ParkourLiteMotorSettings</code>: faster air control and traversal-friendly movement.</li>
</ul>
<p>Assign one asset to <code>PlayerController -&gt; Motor Settings</code> to swap movement feel. Duplicate a preset before editing project-specific values.</p>
<p>Speed fields:</p>
<ul>
<li><code>RunSpeed</code>: normal movement target.</li>
<li><code>SprintSpeed</code>: sprint movement target, not an additive bonus.</li>
<li><code>WalkSpeed</code>: precise movement target.</li>
<li><code>CrouchSpeed</code>: crouched movement target.</li>
<li><code>ProneSpeed</code>: prone movement target.</li>
</ul>
<p>Keep speeds in this order for readable tuning:</p>
<pre><code>ProneSpeed &lt; CrouchSpeed &lt;= WalkSpeed &lt; RunSpeed &lt; SprintSpeed</code></pre>
<p>Acceleration fields:</p>
<ul>
<li><code>GroundAcceleration</code>: how quickly grounded movement reaches target speed.</li>
<li><code>GroundDeceleration</code>: how quickly the controller slows when input stops or target speed drops.</li>
<li><code>AirAcceleration</code>: air steering strength.</li>
<li><code>AirDeceleration</code>: planar speed bleed-off while airborne.</li>
</ul>
<p>Jump and fall fields:</p>
<ul>
<li><code>JumpingForce</code>: upward jump velocity.</li>
<li><code>CanMoveWhileJumping</code>: enables air control.</li>
<li><code>CoyoteTime</code>: grace time after leaving ground.</li>
<li><code>JumpBufferTime</code>: time a jump input remains valid before landing.</li>
<li><code>ParkourBufferTime</code>: time a parkour intent remains valid.</li>
<li><code>GravityScale</code>: extra gravity multiplier through Rigidbody force.</li>
<li><code>MaxFallSpeed</code>: downward velocity clamp.</li>
</ul>
<p>Ground, stairs, and slopes:</p>
<ul>
<li><code>MaxSlopeAngle</code>: highest ordinary ground angle considered walkable.</li>
<li><code>MaxStairsAngle</code>: highest stair angle considered walkable.</li>
<li><code>GroundProbeRadiusScale</code>: ground cast radius relative to capsule radius.</li>
<li><code>GroundSnapDistance</code>: distance used to snap back to nearby walkable ground.</li>
<li><code>GroundStickForce</code>: downward force while grounded.</li>
<li><code>StepHeight</code>: maximum climbable step height.</li>
<li><code>StepCheckDistance</code>: forward distance for step checks.</li>
<li><code>StepProbeRadiusScale</code>: step probe radius relative to capsule radius.</li>
<li><code>CeilingCheckDistance</code>: extra clearance required before standing.</li>
<li><code>UphillSlopeSpeedMultiplier</code>: speed modifier when moving uphill.</li>
<li><code>DownhillSlopeSpeedMultiplier</code>: speed modifier when moving downhill.</li>
</ul>
<p>Recommended tuning order:</p>
<ol>
<li>Set <code>GroundLayerMask</code> and <code>StairsLayerMask</code>.</li>
<li>Set capsule radius and height.</li>
<li>Tune <code>StepHeight</code> to match stair geometry.</li>
<li>Increase <code>GroundSnapDistance</code> only enough to remove small ledge flicker.</li>
<li>Increase <code>GroundStickForce</code> only enough to keep stable contact.</li>
<li>Tune acceleration and deceleration.</li>
<li>Tune jump/fall.</li>
<li>Tune slope speed multipliers last.</li>
</ol>
<p>Slide fields:</p>
<ul>
<li><code>SlideDuration</code>: slide lifetime.</li>
<li><code>SlideStartSpeed</code>: starting slide velocity.</li>
<li><code>SlideEndSpeed</code>: minimum ending velocity.</li>
<li><code>SlideSteeringStrength</code>: steering control during slide.</li>
<li><code>SlideCooldownDuration</code>: time before another slide.</li>
<li><code>MinimumSlideInputSpeed</code>: required planar speed before sprint+crouch can become slide.</li>
</ul>
<p>External force field:</p>
<ul>
<li><code>ExternalForceDrag</code>: decay rate for external velocity.</li>
</ul>
<p>Use <code>PlayerController.AddImpulse</code> for impacts, explosions, launch pads, or weapon knockback. Use <code>SetVelocity</code> for authoritative corrections.</p>
<h2 id="7-camera-setup" class="sec">7. Camera Setup</h2>
<h3 id="built-in-camerafollow">Built-In CameraFollow</h3>
<p>Add <code>CameraFollow</code> to a camera and assign the player transform as <code>Target</code>. It supports orbiting, shoulder offset, collision, lock-on influence, and auto-follow yaw.</p>
<p><code>CameraFollow</code> calls <code>PlayerController.SetMainCameraTransform</code>, which makes movement camera-relative.</p>
<h3 id="optional-cinemachine">Optional Cinemachine</h3>
<p>Use <code>CharacterCinemachineAdapter</code> when your project uses Cinemachine.</p>
<ol>
<li>Install Cinemachine from Package Manager.</li>
<li>Create your Cinemachine camera rig.</li>
<li>Add <code>CharacterCinemachineAdapter</code>, or start from <code>Assets/Character Controller/Core/prefabs/CinemachineAdapterRig.prefab</code>.</li>
<li>Assign:</li>
</ol>
<ul>
<li><code>Player Controller</code></li>
<li><code>Cinemachine Camera</code></li>
<li><code>Follow Target</code></li>
<li><code>Look At Target</code></li>
</ul>
<ol>
<li>Keep <code>Assign Player Camera Reference</code> enabled.</li>
</ol>
<p>The adapter stores the Cinemachine reference as a plain <code>Component</code> and uses reflection. Core still imports without Cinemachine installed.</p>
<p>For FPS gameplay, prefer <code>FpsCameraController</code>. Cinemachine is better suited for spectators, cutscenes, kill cams, or third-person modes.</p>
<h2 id="8-animation-integration" class="sec">8. Animation Integration</h2>
<p>Animation is optional. The controller works without an <code>Animator</code>.</p>
<p>To connect your own Animator Controller:</p>
<ol>
<li>Add <code>CharacterAnimatorBridge</code> to the same GameObject as <code>PlayerController</code>.</li>
<li>Assign an <code>Animator</code>, or leave it blank so the bridge searches children.</li>
<li>Assign a <code>CharacterAnimatorParameters</code> asset.</li>
<li>Match your Animator Controller parameter names to the mapping asset.</li>
</ol>
<p>Default parameters:</p>
<ul>
<li>Float: <code>Speed</code>, <code>PlanarSpeed</code>, <code>Forward</code>, <code>Strafe</code>.</li>
<li>Bool: <code>IsGrounded</code>, <code>IsFalling</code>, <code>IsJumping</code>, <code>IsSprinting</code>, <code>IsCrouching</code>, <code>IsProne</code>, <code>IsSliding</code>.</li>
<li>Int: <code>Stance</code>, <code>MovementState</code>.</li>
<li>Trigger: <code>JumpStarted</code>, <code>Landed</code>, <code>SlideStarted</code>, <code>SlideEnded</code>, <code>VaultStarted</code>, <code>VaultEnded</code>, <code>MantleStarted</code>, <code>MantleEnded</code>.</li>
</ul>
<p>Blank parameter names are ignored. Missing Animator parameters are ignored, so partial integrations are safe.</p>
<p><code>Stance</code> values:</p>
<ul>
<li><code>0</code>: Standing.</li>
<li><code>1</code>: Crouching.</li>
<li><code>2</code>: Prone.</li>
</ul>
<p><code>MovementState</code> values:</p>
<ul>
<li><code>0</code>: None.</li>
<li><code>1</code>: Idle.</li>
<li><code>2</code>: Moving.</li>
<li><code>3</code>: Jumping.</li>
<li><code>4</code>: Falling.</li>
<li><code>5</code>: Crouching.</li>
<li><code>6</code>: Prone.</li>
<li><code>7</code>: Sliding.</li>
<li><code>8</code>: Dashing.</li>
<li><code>9</code>: Vaulting.</li>
<li><code>10</code>: Parkour.</li>
</ul>
<p>The bridge exposes events for jump, land, slide, vault, mantle, and stance changes. Use those events for animation events, IK, audio, VFX, or camera effects without editing movement states.</p>
<p>The FPS demo builder creates simple demo clips for idle, crouch, prone, and ground slide. They animate a generated capsule body only and are integration examples, not final character art.</p>
<h2 id="9-input-buffering-and-action-priority" class="sec">9. Input Buffering and Action Priority</h2>
<p>The controller resolves short-lived action input through <code>PlayerController</code> buffers.</p>
<p>Built-in priority rules:</p>
<ol>
<li>FPS parkour modules get first chance to consume jump intent during <code>Update</code>.</li>
<li>Core vault gets the next chance when a valid vault target exists.</li>
<li>Grounded or coyote-time jump runs when no valid parkour action consumed the intent.</li>
<li>Buffered landing jump runs when jump is pressed shortly before landing.</li>
<li>Extra jumps from <code>DoubleJumpModule</code> run only after grounded and coyote-time jumps are no longer valid.</li>
<li>Crouch while sprinting starts a slide only when <code>CanStartSlide()</code> is valid. Otherwise it becomes crouch.</li>
<li>Prone has priority over held crouch in continuous stance input.</li>
<li>Interaction commands do not change locomotion state by default. Interaction systems should request movement locks or state changes explicitly.</li>
</ol>
<p>Public buffer API:</p>
<pre><code>playerController.BufferJumpIntent();
playerController.BufferParkourIntent();
bool hasJump = playerController.HasBufferedJumpIntent;
bool hasParkour = playerController.HasBufferedParkourIntent;
bool consumedJump = playerController.TryConsumeBufferedJumpIntent();
bool consumedParkour = playerController.TryConsumeBufferedParkourIntent();
playerController.ClearBufferedInputs();</code></pre>
<p>For custom buffered actions:</p>
<ol>
<li>Buffer input once from your input adapter or command sink.</li>
<li>Resolve it from one owner system in <code>UpdateModule</code> or <code>FixedUpdateModule</code>.</li>
<li>Check action-specific conditions before consuming the buffer.</li>
<li>Consume and clear only when the action actually starts.</li>
<li>Avoid direct state-level input subscriptions for actions that compete with jump, parkour, crouch, prone, slide, or interaction.</li>
</ol>
<h2 id="10-moving-platforms" class="sec">10. Moving Platforms</h2>
<p>Add <code>MovingPlatform</code> to moving or rotating platforms. It supports Rigidbody platforms and scripted transform platforms. The controller tracks platform transform deltas and preserves inherited velocity when jumping from platforms.</p>
<p>Custom platforms can implement <code>IMovingPlatform</code>:</p>
<pre><code>public interface IMovingPlatform
{
Transform PlatformTransform { get; }
Vector3 LinearVelocity { get; }
Vector3 AngularVelocity { get; }
Vector3 GetVelocityAtPoint(Vector3 worldPoint);
}</code></pre>
<p>For Rigidbody platforms, <code>MovingPlatform</code> can use <code>Rigidbody.GetPointVelocity</code>. For scripted platforms, it derives velocity from fixed-step transform deltas.</p>
<h2 id="11-stable-public-api" class="sec">11. Stable Public API</h2>
<p>Use public APIs instead of private fields.</p>
<p>State:</p>
<ul>
<li><code>StateSnapshot</code></li>
<li><code>GetStateSnapshot()</code></li>
<li><code>CurrentStateName</code></li>
<li><code>CurrentStateType</code></li>
<li><code>Stance</code></li>
<li><code>Grounded</code></li>
<li><code>Velocity</code></li>
<li><code>PlanarVelocity</code></li>
<li><code>SpeedMode</code></li>
<li><code>SlopeAngle</code></li>
<li><code>HasSurfaceHit</code></li>
<li><code>SurfaceHit</code></li>
<li><code>Platform</code></li>
</ul>
<p>Control gates:</p>
<ul>
<li><code>SetMovementEnabled(bool)</code></li>
<li><code>SetLookEnabled(bool)</code></li>
<li><code>SetMovementFacingEnabled(bool)</code></li>
<li><code>SetSlopeAlignmentEnabled(bool)</code></li>
<li><code>SetGroundProbingEnabled(bool)</code></li>
</ul>
<p>Motion and actions:</p>
<ul>
<li><code>AddImpulse(Vector3 impulse, ForceMode forceMode = ForceMode.VelocityChange)</code></li>
<li><code>SetVelocity(Vector3 velocity)</code></li>
<li><code>Teleport(Vector3 position)</code></li>
<li><code>Teleport(Vector3 position, Quaternion rotation)</code></li>
<li><code>TryJump()</code></li>
<li><code>TryStartSlide()</code></li>
<li><code>TryStartVault()</code></li>
<li><code>ForceStance(PlayerStance stance)</code></li>
<li><code>ClearBufferedInputs()</code></li>
</ul>
<p><code>CharacterSpeedMode</code> covers idle, walk, run, sprint, crouch, prone, slide, air, dash, vault, and parkour.</p>
<p>Custom scripted parkour states should implement <code>ICharacterParkourState</code> so state snapshots and animation bridge report parkour without relying on class-name conventions.</p>
<h2 id="12-extension-patterns" class="sec">12. Extension Patterns</h2>
<h3 id="skillmodule">SkillModule</h3>
<p>Use <code>SkillModule</code> for gameplay features that run alongside core states.</p>
<pre><code>public class MySkill : SkillModule
{
protected override void OnInitialize() {}
protected override void OnCleanup() {}
public override void UpdateModule(float deltaTime) {}
public override void FixedUpdateModule(float deltaTime) {}
}</code></pre>
<h3 id="inputextensionmodule">InputExtensionModule</h3>
<p>Use <code>InputExtensionModule</code> to read additional action maps from <code>InputHandler</code> assets.</p>
<pre><code>public class MyInputExtension : InputExtensionModule
{
protected override void OnActionsEnabled() {}
protected override void OnActionsDisabled() {}
}</code></pre>
<p>Add-on packages may depend on Core. Core should not depend on add-ons.</p>
<h2 id="13-fps-add-on-setup" class="sec">13. FPS Add-On Setup</h2>
<figure class="shot">
<div class="shot-frame">
<img src="images/fps-wizard.png" alt="The Setup Wizard with FPS selected. Highlight the FPS toggle and the Assign Demo Rifle checkbox." onerror="this.closest('.shot-frame').classList.add('missing');this.remove();">
<div class="shot-slot"><span class="shot-tag">SCREENSHOT SLOT</span><span class="shot-cap">Capture: The Setup Wizard with FPS selected. Highlight the FPS toggle and the Assign Demo Rifle checkbox.</span><span class="shot-file">images/fps-wizard.png</span></div>
</div>
<figcaption>Figure 6. The Setup Wizard with FPS selected. Highlight the FPS toggle and the Assign Demo Rifle checkbox.</figcaption>
</figure>
<p>Fast path:</p>
<ol>
<li>Open <code>Tools &gt; Character Controller &gt; Setup Wizard</code>.</li>
<li>Choose <code>FPS</code>.</li>
<li>Press <code>Create Controller</code>, or configure an existing player.</li>
<li>Leave <code>Assign Demo Rifle</code> enabled for a first working setup.</li>
<li>Press <code>Validate</code>.</li>
<li>Press Play.</li>
</ol>
<p>Manual requirements:</p>
<ul>
<li><code>FPSModule</code> on the same GameObject as <code>PlayerController</code>.</li>
<li><code>FPSControls.inputactions</code> in <code>InputHandler -&gt; Extension Action Assets</code>.</li>
<li><code>FpsLocalInputCommandSource</code> enabled on local player objects.</li>
<li><code>FpsCameraController</code>, <code>WeaponManager</code>, <code>FPSViewMotion</code>, <code>AdsController</code>, <code>RecoilController</code>, <code>WeaponSwayController</code>, and any desired FPS systems.</li>
</ul>
<p>Expected <code>FPS</code> actions:</p>
<ul>
<li><code>Look</code></li>
<li><code>Fire</code></li>
<li><code>Aim</code></li>
<li><code>Reload</code></li>
<li><code>Melee</code></li>
<li><code>Use</code></li>
<li><code>Weapon1</code></li>
<li><code>Weapon2</code></li>
<li><code>Weapon3</code></li>
<li><code>Weapon4</code></li>
</ul>
<p>The FPS wizard wires the command bus, camera, view motion, ADS, recoil, weapon sway, weapon manager, interaction, inventory, footsteps, hitmarker feedback, parkour, and <code>FPSModule</code>.</p>
<h2 id="14-fps-systems" class="sec">14. FPS Systems</h2>
<h3 id="weapons">Weapons</h3>
<p>Create weapon assets from <code>Create &gt; Character Controller &gt; FPS &gt; Weapon Definition</code>.</p>
<p>Important systems:</p>
<ul>
<li><code>WeaponDefinition</code>: ScriptableObject weapon setup for hitscan or projectile weapons.</li>
<li><code>WeaponManager</code>: loadout, weapon switching, view-model spawning, ADS FOV, and weapon events.</li>
<li><code>Weapon</code>: base class for fire-rate, semi/burst/full-auto, ammo, and reload behavior.</li>
<li><code>IWeaponModifier</code>: attachment-friendly stat hook.</li>
<li><code>WeaponStateSnapshot</code>: small state packet for UI, save data, or multiplayer replication.</li>
</ul>
<h3 id="ads">ADS</h3>
<p><code>WeaponDefinition</code> implements <code>IAdsProvider</code>. Each weapon can define multiple <code>AdsSightDefinition</code> entries for iron sights, optics, scopes, or alternate sight positions.</p>
<p>Useful callbacks:</p>
<ul>
<li><code>AimStarted</code></li>
<li><code>AimCanceled</code></li>
<li><code>FullyAimed</code></li>
<li><code>AimWeightChanged</code></li>
<li><code>SightChanged</code></li>
</ul>
<h3 id="recoil">Recoil</h3>
<p>Create recoil profiles from <code>Create &gt; Character Controller &gt; FPS &gt; Recoil Profile</code>.</p>
<p>Profiles support:</p>
<ul>
<li>Camera vertical, horizontal, and roll kick.</li>
<li>Weapon position and rotation kick.</li>
<li>Recovery delay and speed.</li>
<li>Kick snappiness.</li>
<li>Randomization curves.</li>
<li>Burst accumulation curves.</li>
<li>Per-axis weapon-position recoil limits.</li>
</ul>
<p><code>RecoilController</code> applies recoil through camera and weapon-view offsets, so weapon firing code stays independent from recoil behavior.</p>
<h3 id="weapon-sway">Weapon Sway</h3>
<p>Create sway profiles from <code>Create &gt; Character Controller &gt; FPS &gt; Weapon Sway Profile</code>.</p>
<p>Sway sources:</p>
<ul>
<li><code>MouseMovementSwaySource</code></li>
<li><code>MovementSwaySource</code></li>
<li><code>IdleBreathingSwaySource</code></li>
<li><code>SprintSwaySource</code></li>
</ul>
<p><code>WeaponSwayProfile</code> exposes curves and amplitudes per source, ADS reduction, and smoothing. Weapon sway and camera bob can be tuned or disabled independently.</p>
<h3 id="damage">Damage</h3>
<p>Use <code>HealthComponent</code> on players, NPCs, or destructibles. Add <code>DamageHitbox</code> to child colliders for head, torso, limb, armor, or weak-point routing.</p>
<p>Included modifier examples:</p>
<ul>
<li><code>DamageMultiplierModifier</code></li>
<li><code>CriticalDamageModifier</code></li>
<li><code>HitGroupDamageModifier</code></li>
</ul>
<p>Damage payloads and snapshots are designed for multiplayer-friendly replication.</p>
<h3 id="interaction">Interaction</h3>
<p><code>FpsInteractor</code> raycasts from the FPS camera and talks only to <code>IInteractable</code> and <code>IHoldInteractable</code>.</p>
<p>Useful events:</p>
<ul>
<li><code>FocusChanged</code></li>
<li><code>PromptChanged</code></li>
<li><code>HoldStarted</code></li>
<li><code>HoldProgressChanged</code></li>
<li><code>HoldCanceled</code></li>
<li><code>InteractionCompleted</code></li>
</ul>
<p>Use <code>IInteractionCondition</code> components for rules such as distance, locked state, inventory keys, quest state, faction, or authority checks.</p>
<h3 id="inventory">Inventory</h3>
<p>Create item assets from <code>Create &gt; Character Controller &gt; FPS &gt; Inventory</code>.</p>
<p><code>FpsInventory</code> supports stackable items, ammo counts, weapon items, equipment slots, and quick access slots. <code>InventoryWeaponLoadoutBinder</code> can rebuild the <code>WeaponManager</code> loadout from equipped <code>WeaponItemDefinition</code> assets.</p>
<h3 id="footsteps-and-surfaces">Footsteps And Surfaces</h3>
<p>Create surface assets from <code>Create &gt; Character Controller &gt; FPS &gt; Surface Profile</code>. Add <code>SurfaceIdentifier</code> to surfaces or configure <code>SurfaceDetector</code> layer mappings.</p>
<p><code>FootstepController</code> emits walking, running, and crouching footsteps. <code>IFootstepEffectReceiver</code> is available for custom VFX, decals, or dust.</p>
<h3 id="hitmarkers">Hitmarkers</h3>
<p>Create a hitmarker profile from <code>Create &gt; Character Controller &gt; FPS &gt; Hitmarker Settings</code>.</p>
<p>Use:</p>
<ul>
<li><code>HitmarkerFeedbackController</code></li>
<li><code>HitmarkerCanvasView</code></li>
<li><code>HitmarkerSettings</code></li>
</ul>
<p>Damage confirmations are published by <code>HealthComponent</code> through <code>DamageEventBus</code>, so hitmarkers are not coupled to guns or projectiles.</p>
<h3 id="projectiles">Projectiles</h3>
<p>Create projectile tuning assets from <code>Create &gt; Character Controller &gt; FPS &gt; Projectile Ballistics Profile</code>.</p>
<p>Projectile features:</p>
<ul>
<li>Bullet travel over time.</li>
<li>Bullet drop through gravity scale.</li>
<li>Drag.</li>
<li>Penetration.</li>
<li>Ricochet.</li>
<li>Surface-specific impact effects.</li>
<li>Non-alloc swept casts.</li>
</ul>
<h3 id="parkour">Parkour</h3>
<p>Create parkour tuning assets from <code>Create &gt; Character Controller &gt; FPS &gt; Parkour Settings</code>.</p>
<p>Supported mechanics:</p>
<ul>
<li>Mantling from jump intent near taller ledges.</li>
<li>Vaulting from jump intent near low obstacles.</li>
<li>Wall running while airborne, sprinting, moving fast enough, recently pressing jump, having enough ground clearance, and moving along a valid side wall.</li>
<li>Ledge grabbing while airborne, jump to climb, crouch to drop.</li>
</ul>
<p>Wall running intentionally does not trigger from a head-on jump into a wall. By default it requires recent jump intent, enough starting height above walkable ground, forward/sprint input, side-wall alignment, and movement along the wall. If conditions fail, the controller falls normally and does not keep the player attached to the wall.</p>
<p>During active wall-run, <code>WallRunControlledDownwardSpeed</code> controls downward velocity. The run ends when the player releases required input, looks or moves away from the wall direction, reaches walkable ground, loses the wall, or reaches <code>WallRunDuration</code>.</p>
<h2 id="15-fps-multiplayer-architecture" class="sec">15. FPS Multiplayer Architecture</h2>
<p>The FPS add-on is networking-ready but transport-free. It does not depend on Netcode for GameObjects, FishNet, Mirror, Photon, or any networking package.</p>
<p>Command flow:</p>
<ul>
<li><code>FpsLocalInputCommandSource</code> converts local input to <code>FpsPlayerCommand</code>.</li>
<li>Gameplay systems implement <code>IFpsCommandSink</code>.</li>
<li><code>FpsCommandBus.SubmitCommand</code> dispatches commands.</li>
<li>Networking code can submit the same payload from client input, server RPCs, prediction buffers, or replay.</li>
</ul>
<p>State flow:</p>
<ul>
<li><code>FpsStateReplicationController.CaptureSnapshot</code> builds a transport-neutral state packet.</li>
<li><code>ApplyAuthoritativeSnapshot</code> applies authoritative position, rotation, velocity, camera, weapon, ADS, and parkour state.</li>
<li><code>SnapshotCaptured</code> and <code>SnapshotApplied</code> are available for prediction/reconciliation layers.</li>
</ul>
<p>For multiplayer projects, keep <code>FPSModule</code> but disable or remove <code>FpsLocalInputCommandSource</code> on non-owning proxies.</p>
<h2 id="16-troubleshooting" class="sec">16. Troubleshooting</h2>
<p>Use <code>Tools &gt; Character Controller &gt; Validation Window</code> first.</p>
<h3 id="character-does-not-move">Character Does Not Move</h3>
<ul>
<li>Confirm <code>PlayerController</code>, <code>Rigidbody</code>, <code>CapsuleCollider</code>, and <code>InputHandler</code> are on the same root.</li>
<li>Confirm <code>InputHandler -&gt; Movement Actions Asset</code> is assigned.</li>
<li>Confirm <code>Movement Action Map Name</code> matches the action map, usually <code>Control</code>.</li>
<li>Confirm <code>Move</code> exists and is a <code>Vector2</code>.</li>
<li>Confirm Unity Input System is enabled.</li>
<li>Confirm your code is not calling <code>SetMovementEnabled(false)</code>.</li>
</ul>
<h3 id="input-map-missing">Input Map Missing</h3>
<ul>
<li>Core movement expects a map named <code>Control</code> unless changed.</li>
<li>Required core actions are <code>Move</code>, <code>Jump</code>, <code>Crouch</code>, <code>Prone</code>, <code>Dash</code>, <code>Walk</code>, and <code>Sprint</code>.</li>
<li>Add-on action maps belong in <code>InputHandler -&gt; Extension Action Assets</code>.</li>
<li>The FPS add-on expects a map named <code>FPS</code>.</li>
</ul>
<h3 id="bad-layer-masks">Bad Layer Masks</h3>
<ul>
<li><code>GroundLayerMask</code> must include ordinary walkable ground.</li>
<li><code>StairsLayerMask</code> must include stair/step geometry.</li>
<li>Empty masks prevent ground detection.</li>
<li>Do not put the player body layer in ground masks unless your scene intentionally requires it.</li>
</ul>
<h3 id="jitter-on-stairs">Jitter On Stairs</h3>
<ul>
<li>Use simple stable colliders. Avoid tiny overlapping stair colliders.</li>
<li>Set <code>StepHeight</code> slightly above visible stair riser height.</li>
<li>Increase <code>StepCheckDistance</code> if the controller reaches the riser too late.</li>
<li>Increase <code>GroundSnapDistance</code> only enough to remove flicker.</li>
<li>Keep <code>GroundStickForce</code> moderate.</li>
<li>Test at 30, 60, and 120 FPS.</li>
</ul>
<h3 id="cannot-stand-from-crouch-or-prone">Cannot Stand From Crouch Or Prone</h3>
<ul>
<li>Check for a ceiling or collider above the capsule.</li>
<li>Lower <code>CrouchCapsuleHeight</code> or <code>ProneCapsuleHeight</code> for low cover.</li>
<li>Keep <code>CeilingCheckDistance</code> small but positive.</li>
<li>Confirm child visual colliders are not blocking the body capsule.</li>
</ul>
<h3 id="camera-not-rotating">Camera Not Rotating</h3>
<ul>
<li>For third-person, confirm <code>CameraFollow</code> is on the active camera and has a target.</li>
<li>For FPS, confirm <code>FpsCameraController</code> and <code>FpsLocalInputCommandSource</code> are present.</li>
<li>Confirm <code>SetLookEnabled(false)</code> is not active.</li>
<li>Confirm look input exists in the FPS input map.</li>
<li>Confirm the active camera is tagged <code>MainCamera</code> when relying on automatic camera-relative movement.</li>
</ul>
<h3 id="fps-input-not-firing">FPS Input Not Firing</h3>
<ul>
<li>Add <code>FPSControls.inputactions</code> to <code>InputHandler -&gt; Extension Action Assets</code>.</li>
<li>Confirm the map is named <code>FPS</code>.</li>
<li>Confirm required FPS actions exist.</li>
<li>Confirm <code>FPSModule</code> is on the player.</li>
<li>Confirm local player objects keep <code>FpsLocalInputCommandSource</code> enabled.</li>
<li>For multiplayer proxies, disable local input only on non-owning instances.</li>
</ul>
<h3 id="slides-do-not-start">Slides Do Not Start</h3>
<ul>
<li>Slide starts from crouch intent while sprinting only when slide conditions are valid.</li>
<li>Confirm the player is moving faster than <code>MinimumSlideInputSpeed</code>.</li>
<li>Confirm <code>SlideCooldown</code> is not active.</li>
<li>Confirm movement is enabled.</li>
</ul>
<h3 id="jump-buffer-or-coyote-time-does-not-work">Jump Buffer Or Coyote Time Does Not Work</h3>
<ul>
<li>Confirm <code>JumpBufferTime</code> and <code>CoyoteTime</code> are greater than zero.</li>
<li>Confirm the <code>Jump</code> action fires <code>performed</code>.</li>
<li>Confirm a parkour module is not intentionally consuming the buffered jump first.</li>
</ul>
<h3 id="moving-platforms-slip-or-jitter">Moving Platforms Slip Or Jitter</h3>
<ul>
<li>Add <code>MovingPlatform</code> to the platform.</li>
<li>For Rigidbody platforms, assign the platform Rigidbody or let <code>MovingPlatform.Reset</code> find it.</li>
<li>For scripted transform platforms, leave <code>preferRigidbodyVelocity</code> disabled or do not assign a Rigidbody.</li>
<li>Move scripted platforms from <code>FixedUpdate</code> when possible.</li>
</ul>
<h2 id="17-migration-notes" class="sec">17. Migration Notes</h2>
<p>Current package contains:</p>
<ul>
<li><code>Core</code></li>
<li><code>FPSFirstPerson</code></li>
</ul>
<p>Core is standalone. FPS depends on Core.</p>
<p>Buyer-visible migration points:</p>
<ul>
<li><code>SprintSpeed</code> is the target sprint speed, not a bonus added to <code>Speed</code>.</li>
<li>Input inspector labels are <code>Movement Actions Asset</code>, <code>Movement Action Map Name</code>, and <code>Extension Action Assets</code>.</li>
<li>Movement tuning can be assigned through <code>CharacterMotorSettings</code>.</li>
<li>Animation integration should use <code>CharacterAnimatorBridge</code> and <code>CharacterAnimatorParameters</code>.</li>
<li>Stable public APIs should be used for integrations instead of private fields.</li>
<li>Add <code>MovingPlatform</code> to platforms the character should ride.</li>
<li>Use <code>CharacterCinemachineAdapter</code> for Cinemachine rigs. Do not add a hard Cinemachine assembly reference to Core.</li>
</ul>
<h2 id="18-support-checklist" class="sec">18. Support Checklist</h2>
<p>When reporting a problem, include:</p>
<ul>
<li>Unity version.</li>
<li>Whether Input System is enabled.</li>
<li>Scene or prefab used.</li>
<li>Screenshots of <code>PlayerController</code>, <code>InputHandler</code>, and relevant FPS components.</li>
<li>Ground/stair layer setup.</li>
<li>Input action asset setup.</li>
<li>Console errors or warnings.</li>
<li>Steps to reproduce.</li>
</ul>
</main>
</div>
</body>
</html>