Sample Project
Overview
The KCC comes with a full Unity project with examples, testing playground and handy code snippets to better understand how KCC works and to speed up onboarding process.
![KCC](/docs/img/quantum/v3/addons/kcc/overview-3.jpg)
The sample project can be downloaded in Download section.
Features
- Playground scene - Stairs, Slopes, Corridors, Gaps.
- Interaction examples - Teleport, Jump Pad.
- Simple NPC navigation example.
- Input smoothing.
- Support for PC / Mobile.
- Photon Menu integration.
Sample Controls
Mouse
- LookW
,S
,A
,D
- MoveSpace
- JumpEnter
- Lock/unlock cursor
Project structure
Assets/Photon/QuantumAddons/KCC
- Base addon folder.AssetDB
- Contains basic/minimal setup (KCC entity, KCC settings) and default KCC processor assets for movement (EnvironmentProcessor) and post-processing after move (GroundSnapProcessor, StepUpProcessor).Example
- Contains simple game loop (Menu <=> Playground scene), player controller view from first-person and third-person perspective and other example gameplay elements related to character movement.Simulation
- Core KCC addon scripts.
Recommended walkthrough
- Try
Playground
scene. - Check player implementation -
PlayerInput
,PlayerSystem
,FirstPersonCamera
,ThirdPersonCamera
. - Check world object interactions -
JumpPadProcessor
,TeleportProcessor
. - Check movement implementation -
EnvironmentProcessor
,SimpleMoveProcessor
. - To get more context it's good time to explore and learn about Processors.
Now you should have a basic understanding how to move with KCC, how the KCC interacts with other objects (processors) and how they modify player behavior.
- Check rest of the sample project.
- Take some scripts to your project or cleanup this and make a game 🚀
⚠️ The sample uses custom input smoothing get super smooth camera rotation, check Input section for more info.
Back to top