cocos_add_box_character_controller
Attach an AABB-shaped kinematic character controller to handle player movement with automatic ground snapping, slope limits, and step-up functionality.
Instructions
Attach cc.BoxCharacterController — AABB-shaped kinematic character.
Use this INSTEAD of RigidBody + Collider for player movement. It handles ground snapping, slope limits, step-up automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| node_id | Yes | ||
| half_height | No | ||
| half_side_extent | No | ||
| half_forward_extent | No | ||
| min_move_distance | No | ||
| step_offset | No | ||
| slope_limit | No | ||
| skin_width | No | ||
| center_x | No | ||
| center_y | No | ||
| center_z | No | ||
| group | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |