# RigidbodyMotionExtensions

Bind Rigidbody position or rotation using physics movement or direct property assignment.

Namespace: MeatMotion.Extensions

Assembly: MeatMotion

```csharp
public static class RigidbodyMotionExtensions
```

Requires com.unity.modules.physics

[Runtime/Bindings/Physics/RigidbodyMotionExtensions.cs · L6](../../../source/Runtime/Bindings/Physics/RigidbodyMotionExtensions.cs.html#L6)

## BindToPosition

Use MovePosition by default. Pass false to assign position directly.

```csharp
public static MotionHandle BindToPosition<TOptions, TAdapter>(this MotionBuilder<Vector3, TOptions, TAdapter> builder, Rigidbody rigidbody, bool useMovePosition = true)
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<Vector3, TOptions>
```

Parameters and return value

- `builder` (`this MotionBuilder<Vector3, TOptions, TAdapter>`) Configured builder, passed as the receiver for extension calls.
- `rigidbody` (`Rigidbody`) Target Rigidbody that receives the update.
- `useMovePosition = true` (`bool`) Use MovePosition when true, or assign position directly when false.
- Returns: `MotionHandle`

[Runtime/Bindings/Physics/RigidbodyMotionExtensions.cs · L8](../../../source/Runtime/Bindings/Physics/RigidbodyMotionExtensions.cs.html#L8)

## BindToPositionX

Use MovePosition by default. Pass false to assign position directly. Other components retain their current values; only X changes.

```csharp
public static MotionHandle BindToPositionX(this FloatMotionBuilder builder, Rigidbody rigidbody, bool useMovePosition = true)
```

Parameters and return value

- `builder` (`this FloatMotionBuilder`) Configured builder, passed as the receiver for extension calls.
- `rigidbody` (`Rigidbody`) Target Rigidbody that receives the update.
- `useMovePosition = true` (`bool`) Use MovePosition when true, or assign position directly when false.
- Returns: `MotionHandle`

[Runtime/Bindings/Physics/RigidbodyMotionExtensions.cs · L15](../../../source/Runtime/Bindings/Physics/RigidbodyMotionExtensions.cs.html#L15)

```csharp
public static MotionHandle BindToPositionX<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, Rigidbody rigidbody, bool useMovePosition = true)
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<float, TOptions>
```

Parameters and return value

- `builder` (`this MotionBuilder<float, TOptions, TAdapter>`) Configured builder, passed as the receiver for extension calls.
- `rigidbody` (`Rigidbody`) Target Rigidbody that receives the update.
- `useMovePosition = true` (`bool`) Use MovePosition when true, or assign position directly when false.
- Returns: `MotionHandle`

[Runtime/Bindings/Physics/RigidbodyMotionExtensions.cs · L20](../../../source/Runtime/Bindings/Physics/RigidbodyMotionExtensions.cs.html#L20)

## BindToPositionY

Use MovePosition by default. Pass false to assign position directly. Other components retain their current values; only Y changes.

```csharp
public static MotionHandle BindToPositionY(this FloatMotionBuilder builder, Rigidbody rigidbody, bool useMovePosition = true)
```

Parameters and return value

- `builder` (`this FloatMotionBuilder`) Configured builder, passed as the receiver for extension calls.
- `rigidbody` (`Rigidbody`) Target Rigidbody that receives the update.
- `useMovePosition = true` (`bool`) Use MovePosition when true, or assign position directly when false.
- Returns: `MotionHandle`

[Runtime/Bindings/Physics/RigidbodyMotionExtensions.cs · L33](../../../source/Runtime/Bindings/Physics/RigidbodyMotionExtensions.cs.html#L33)

```csharp
public static MotionHandle BindToPositionY<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, Rigidbody rigidbody, bool useMovePosition = true)
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<float, TOptions>
```

Parameters and return value

- `builder` (`this MotionBuilder<float, TOptions, TAdapter>`) Configured builder, passed as the receiver for extension calls.
- `rigidbody` (`Rigidbody`) Target Rigidbody that receives the update.
- `useMovePosition = true` (`bool`) Use MovePosition when true, or assign position directly when false.
- Returns: `MotionHandle`

[Runtime/Bindings/Physics/RigidbodyMotionExtensions.cs · L38](../../../source/Runtime/Bindings/Physics/RigidbodyMotionExtensions.cs.html#L38)

## BindToPositionZ

Use MovePosition by default. Pass false to assign position directly. Other components retain their current values; only Z changes.

```csharp
public static MotionHandle BindToPositionZ(this FloatMotionBuilder builder, Rigidbody rigidbody, bool useMovePosition = true)
```

Parameters and return value

- `builder` (`this FloatMotionBuilder`) Configured builder, passed as the receiver for extension calls.
- `rigidbody` (`Rigidbody`) Target Rigidbody that receives the update.
- `useMovePosition = true` (`bool`) Use MovePosition when true, or assign position directly when false.
- Returns: `MotionHandle`

[Runtime/Bindings/Physics/RigidbodyMotionExtensions.cs · L51](../../../source/Runtime/Bindings/Physics/RigidbodyMotionExtensions.cs.html#L51)

```csharp
public static MotionHandle BindToPositionZ<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, Rigidbody rigidbody, bool useMovePosition = true)
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<float, TOptions>
```

Parameters and return value

- `builder` (`this MotionBuilder<float, TOptions, TAdapter>`) Configured builder, passed as the receiver for extension calls.
- `rigidbody` (`Rigidbody`) Target Rigidbody that receives the update.
- `useMovePosition = true` (`bool`) Use MovePosition when true, or assign position directly when false.
- Returns: `MotionHandle`

[Runtime/Bindings/Physics/RigidbodyMotionExtensions.cs · L56](../../../source/Runtime/Bindings/Physics/RigidbodyMotionExtensions.cs.html#L56)

## BindToPositionXY

Use MovePosition by default. Pass false to assign position directly. Other components retain their current values; only XY changes.

```csharp
public static MotionHandle BindToPositionXY<TOptions, TAdapter>(this MotionBuilder<Vector2, TOptions, TAdapter> builder, Rigidbody rigidbody, bool useMovePosition = true)
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<Vector2, TOptions>
```

Parameters and return value

- `builder` (`this MotionBuilder<Vector2, TOptions, TAdapter>`) Configured builder, passed as the receiver for extension calls.
- `rigidbody` (`Rigidbody`) Target Rigidbody that receives the update.
- `useMovePosition = true` (`bool`) Use MovePosition when true, or assign position directly when false.
- Returns: `MotionHandle`

[Runtime/Bindings/Physics/RigidbodyMotionExtensions.cs · L69](../../../source/Runtime/Bindings/Physics/RigidbodyMotionExtensions.cs.html#L69)

## BindToPositionXZ

Use MovePosition by default. Pass false to assign position directly. Other components retain their current values; only XZ changes.

```csharp
public static MotionHandle BindToPositionXZ<TOptions, TAdapter>(this MotionBuilder<Vector2, TOptions, TAdapter> builder, Rigidbody rigidbody, bool useMovePosition = true)
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<Vector2, TOptions>
```

Parameters and return value

- `builder` (`this MotionBuilder<Vector2, TOptions, TAdapter>`) Configured builder, passed as the receiver for extension calls.
- `rigidbody` (`Rigidbody`) Target Rigidbody that receives the update.
- `useMovePosition = true` (`bool`) Use MovePosition when true, or assign position directly when false.
- Returns: `MotionHandle`

[Runtime/Bindings/Physics/RigidbodyMotionExtensions.cs · L83](../../../source/Runtime/Bindings/Physics/RigidbodyMotionExtensions.cs.html#L83)

## BindToPositionYZ

Use MovePosition by default. Pass false to assign position directly. Other components retain their current values; only YZ changes.

```csharp
public static MotionHandle BindToPositionYZ<TOptions, TAdapter>(this MotionBuilder<Vector2, TOptions, TAdapter> builder, Rigidbody rigidbody, bool useMovePosition = true)
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<Vector2, TOptions>
```

Parameters and return value

- `builder` (`this MotionBuilder<Vector2, TOptions, TAdapter>`) Configured builder, passed as the receiver for extension calls.
- `rigidbody` (`Rigidbody`) Target Rigidbody that receives the update.
- `useMovePosition = true` (`bool`) Use MovePosition when true, or assign position directly when false.
- Returns: `MotionHandle`

[Runtime/Bindings/Physics/RigidbodyMotionExtensions.cs · L97](../../../source/Runtime/Bindings/Physics/RigidbodyMotionExtensions.cs.html#L97)

## BindToRotation

Use MoveRotation by default. Pass false to assign rotation directly.

```csharp
public static MotionHandle BindToRotation<TOptions, TAdapter>(this MotionBuilder<Quaternion, TOptions, TAdapter> builder, Rigidbody rigidbody, bool useMoveRotation = true)
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<Quaternion, TOptions>
```

Parameters and return value

- `builder` (`this MotionBuilder<Quaternion, TOptions, TAdapter>`) Configured builder, passed as the receiver for extension calls.
- `rigidbody` (`Rigidbody`) Target Rigidbody that receives the update.
- `useMoveRotation = true` (`bool`) Use MoveRotation when true, or assign rotation directly when false.
- Returns: `MotionHandle`

[Runtime/Bindings/Physics/RigidbodyMotionExtensions.cs · L111](../../../source/Runtime/Bindings/Physics/RigidbodyMotionExtensions.cs.html#L111)
