---
title: "==(_:_:)"
framework: realitykit
role: symbol
role_heading: Operator
path: "realitykit/physicsbodycomponent/==(_:_:)"
---

# ==(_:_:)

Indicates whether two physics body components are equal.

## Declaration

```swift
static func == (lhs: PhysicsBodyComponent, rhs: PhysicsBodyComponent) -> Bool
```

## Parameters

- `lhs`: The first physics body component to compare.
- `rhs`: The second physics body component to compare.

## Return Value

Return Value A Boolean value set to true if the two physics body components are equal.
