---
title: PhysicsMotionComponent
framework: realitykit
role: symbol
role_heading: Structure
path: realitykit/physicsmotioncomponent
---

# PhysicsMotionComponent

A component that controls the motion of the body in physics simulations.

## Declaration

```swift
struct PhysicsMotionComponent
```

## Mentioned in

Designing scene hierarchies for efficient physics simulation

## Overview

Overview You specify velocities in the coordinate space of the physics simulation defined by nearestSimulationEntity(for:). The behavior of an entity with a physics motion component depends on the entity’s mode setting:

## Topics

### Creating the motion component

- [init()](realitykit/physicsmotioncomponent/init().md)
- [init(linearVelocity:angularVelocity:)](realitykit/physicsmotioncomponent/init(linearvelocity:angularvelocity:).md)

### Setting velocity

- [angularVelocity](realitykit/physicsmotioncomponent/angularvelocity.md)
- [linearVelocity](realitykit/physicsmotioncomponent/linearvelocity.md)

## Relationships

### Conforms To

- [Component](realitykit/component.md)
- [Equatable](swift/equatable.md)

## See Also

### Physics motion

- [ImpulseAction](realitykit/impulseaction.md)
