---
title: "physics.bakeStep: Bake Physics Step — Scene kit command — Kition"
description: "Bakes `frames` more frames of the simulation and answers the cache state; divergent cloth/soft-body motion fails and stops automatic baking."
canonical: "https://developer.kition.ai/docs/kits/scene/commands/physics.bakeStep"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/scene/commands/physics.bakeStep](https://developer.kition.ai/docs/kits/scene/commands/physics.bakeStep)

# physics.bakeStep

**Bake Physics Step.** Bakes `frames` more frames of the simulation and answers the cache state; divergent cloth/soft-body motion fails and stops automatic baking.

- Kit: Scene 0.1.0 (.kscene); reference: [Scene kit commands](https://developer.kition.ai/docs/kits/scene.md)
- Changes the document: no

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `frames` | `integer` | no | Frames to bake now (default 4) |

## Call through scene_run

```text
scene_run {
  "path": "<file>.kscene",
  "steps": [{ "command": "physics.bakeStep" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `frames`. scene_run answers the step’s result in `completed[i].result`.

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `error` | `string` | no | Failure detail when state is failed; retry explicitly after correcting settings |
| `frames` | `integer` | no |  |
| `state` | `"none" \| "baking" \| "baked" \| "outdated" \| "failed"` | no |  |
| `total` | `integer` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "error": {
      "description": "Failure detail when state is failed; retry explicitly after correcting settings",
      "type": "string"
    },
    "frames": {
      "type": "integer"
    },
    "state": {
      "enum": [
        "none",
        "baking",
        "baked",
        "outdated",
        "failed"
      ],
      "type": "string"
    },
    "total": {
      "type": "integer"
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "frames": {
      "description": "Frames to bake now (default 4)",
      "type": "integer"
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/scene-darwin-arm64@0.1.0 and the kit itself (scene_commands through @kition/cli@0.1.1, built from KitionAI/kition-scene@4d06faf).
