# Add a dynamic one way platform

The process is very similar as the one for static one way platforms. However, there are a few important things to consider:

## 1. Create a static one way platform

(follow [these instructions](https://lightbug14.gitbook.io/ccp/how-to.../core/add-a-static-one-way-platform)).

## 2. Add a Rigidbody

Add a Rigidbody (Rigidbody2D) component to the platform. One way platforms should be kinematic, **make sure to enable the isKinematic property**.

## 3. Add a DynamicOneWayPlatform component

This component is responsible for re-simulating the platform physics and detecting multiple characters (using a BoxCast). It will automatically detect the BoxCollider component (whether is 2D or 3D) and Rigidbody component (whether is 2D or 3D).

The component itself exposes a layer mask that should be used to filter the collision results. Make sure to specify all the layers with characters on them (or leave it like that, "Everything" is set by default).

Here's an example of a dynamic 3D one way platform (with no movement behaviour).

![](https://3428853154-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LvxVSjyzvP6F7c9h_Hu%2F-Mihw-OiABV0FMRwFJFH%2F-MihwEx0wECVdS5wwUBy%2Fimagen.png?alt=media\&token=4522d314-0e28-4b1b-ac42-53b5aa4ada77)

## 4. Make it move

Once you have everything set up, it is time to add the movement behaviour. You can choose whatever method you want, using a custom script, using CCP's platform behaviours (e.g. ActionBasedPlatform), etc.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://lightbug14.gitbook.io/ccp/how-to.../core/add-a-dynamic-one-way-platform.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
