---
title: "CoordinateFrame"
---
<!-- DO NOT EDIT! This file was auto-generated by crates/build/re_types_builder/src/codegen/docs/website.rs -->

Specifies the coordinate frame for an entity.

If not specified, the coordinate frame uses an implicit frame derived from the entity path.
The implicit frame's name is `tf#/your/entity/path` and has an identity transform connection to its parent path.

To learn more about transforms see [Spaces & Transforms](https://rerun.io/docs/concepts/spaces-and-transforms) in the reference.

## Fields
### Required
* `frame`: [`TransformFrameId`](../components/transform_frame_id.md)


## Can be shown in
* [Spatial3DView](../views/spatial3d_view.md)
* [Spatial2DView](../views/spatial2d_view.md)
* [DataframeView](../views/dataframe_view.md)

## API reference links
 * 🌊 [C++ API docs for `CoordinateFrame`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1archetypes_1_1CoordinateFrame.html)
 * 🐍 [Python API docs for `CoordinateFrame`](https://ref.rerun.io/docs/python/stable/common/archetypes#rerun.archetypes.CoordinateFrame)
 * 🦀 [Rust API docs for `CoordinateFrame`](https://docs.rs/rerun/latest/rerun/archetypes/struct.CoordinateFrame.html)

## Examples

### Change coordinate frame to different built-in frames

snippet: archetypes/coordinate_frame_builtin_frames

<picture data-inline-viewer="snippets/archetypes/coordinate_frame_builtin_frames">
  <source media="(max-width: 480px)" srcset="https://static.rerun.io/coordinate_frame_builtin_frame/71f941f35cf73c299c6ea7fbc4487a140db8e8f8/480w.png">
  <source media="(max-width: 768px)" srcset="https://static.rerun.io/coordinate_frame_builtin_frame/71f941f35cf73c299c6ea7fbc4487a140db8e8f8/768w.png">
  <source media="(max-width: 1024px)" srcset="https://static.rerun.io/coordinate_frame_builtin_frame/71f941f35cf73c299c6ea7fbc4487a140db8e8f8/1024w.png">
  <source media="(max-width: 1200px)" srcset="https://static.rerun.io/coordinate_frame_builtin_frame/71f941f35cf73c299c6ea7fbc4487a140db8e8f8/1200w.png">
  <img src="https://static.rerun.io/coordinate_frame_builtin_frame/71f941f35cf73c299c6ea7fbc4487a140db8e8f8/full.png">
</picture>

### Transform hierarchy with explicit frames

snippet: archetypes/transform3d_hierarchy_frames

<picture data-inline-viewer="snippets/archetypes/transform3d_hierarchy_frames">
  <img src="https://static.rerun.io/transform_hierarchy_frames/9ffb0079828f46c22e22ca55737b8a903889b412/full.png">
</picture>

