Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/kit-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ b2kStart
| `b2kQuickStart [gy]` | One call: world + gravity + card-edge walls + start the loop. |
| `b2kStart` / `b2kStop` | Begin / end the simulation loop. |
| `b2kPause` / `b2kResume` | Freeze / resume stepping without tearing down. |
| `b2kStepOnce` | Advance exactly one fixed step (even while paused) — drives a Step button. |
| `b2kIsRunning()` | True while the loop is stepping (not stopped or paused). |
| `b2kAddWalls` | Static walls around the current card edges. |
| `b2kAddGround [screenY]` | A static floor across the card (optionally at a given Y). |
Expand Down Expand Up @@ -188,6 +189,11 @@ helpers or to `b2kRemoveJoint`.
| `b2kRopeLength(joint)` → pixels | Current distance-joint length. |
| `b2kSpring joint, hertz [,damping]` | Make a rope (distance) joint springy. |
| `b2kWeldSpring joint, hertz [,damping]` | Make a weld springy (0 hertz = rigid). |
| `b2kMotorOff joint` | Turn a hinge motor off (free swing). |
| `b2kHingeLimitOff joint` | Remove a hinge's angle limits. |
| `b2kSliderMotorOff joint` | Turn a slider motor off. |
| `b2kSliderLimitOff joint` | Remove a slider's travel limits. |
| `b2kWheelMotorOff joint` | Turn a wheel motor off. |

## Drag & events

Expand Down
Loading
Loading