MCPcopy Index your code
hub / github.com/cocos/cocos-example-physics

github.com/cocos/cocos-example-physics @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
1,125 symbols 1,538 edges 111 files 7 documented · 1%
What it actually does AI analysis from the code graph — generated when you open this
loading…

Extension points exported contracts — how you extend this code

IMotorBehaviour (Interface)
(no doc) [2 implementers]
3d/assets/demo/simple-car/scripts/const/Interface.ts
btIDebugDraw (Interface)
(no doc) [1 implementers]
3d/types/Ammo.d.ts
primitive (Interface)
(no doc)
3d/assets/common/scripts/ContactPointHelper.ts
IAABBOptions (Interface)
(no doc)
3d/types/CANNON.d.ts
IMapStruct (Interface)
(no doc)
3d/assets/demo/simple-car/scripts/const/Interface.ts
IConstraintOptions (Interface)
(no doc)
3d/types/CANNON.d.ts
IHingeConstraintOptions (Interface)
(no doc)
3d/types/CANNON.d.ts
ILockConstraintOptions (Interface)
(no doc)
3d/types/CANNON.d.ts

Core symbols most depended-on inside this repo

OnCurveCast
called by 18
3d/assets/common/scripts/SweepHelper.ts
dot3
called by 12
3d/assets/common/scripts/Noise.ts
_setValue
called by 12
3d/assets/demo/simple-car/scripts/gameplay/FourDirButtons.ts
OnCurveCast
called by 10
3d/assets/common/scripts/CurveCastHelper.ts
reset
called by 10
3d/assets/demo/falling-ball/scripts/BallCtr.ts
initialize
called by 8
3d/assets/experiment/character-controller/CharacterController.ts
instantiate
called by 8
3d/assets/demo/benchmark/scripts/Benchmark.ts
check
called by 8
3d/assets/demo/simple-car/scripts/gameplay/FourDirButtons.ts

Shape

Method 537
Class 524
Interface 26
Enum 20
Function 18

Languages

TypeScript100%

Modules by API surface

3d/types/Ammo.d.ts225 symbols
3d/types/CANNON.d.ts125 symbols
3d/assets/common/scripts/SweepHelper.ts34 symbols
3d/assets/experiment/character-controller/CharacterController.ts32 symbols
3d/assets/demo/buoyancy/WaterWaves.ts22 symbols
3d/assets/demo/benchmark/scripts/Benchmark.ts20 symbols
3d/assets/cases/scripts/CharacterControllerTest.ts20 symbols
3d/assets/demo/simple-bow/scripts/RiggedBow.ts19 symbols
3d/assets/common/scripts/CurveCastHelper.ts19 symbols
3d/assets/demo/simple-car/scripts/gameplay/FourDirButtons.ts15 symbols
3d/assets/common/scripts/first-person-camera.ts15 symbols
2d/common/assets/main-menu/scripts/backbutton.ts15 symbols

For agents

$ claude mcp add cocos-example-physics \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact