<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/CharacterControllerComponent/CollisionFlags",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation28CharacterControllerComponentV14CollisionFlagsV"
  },
  "title" : "CharacterControllerComponent.CollisionFlags"
}
-->

# CharacterControllerComponent.CollisionFlags

An option set that specifies which parts of the character capsule have collided with other objects.

```
struct CollisionFlags
```

## Topics

### Initializers

[`init(rawValue: UInt8)`](/documentation/RealityKit/CharacterControllerComponent/CollisionFlags/init(rawValue:))

Initializes collisions flags from a raw value.

### Instance Properties

[`let rawValue: UInt8`](/documentation/RealityKit/CharacterControllerComponent/CollisionFlags/rawValue)

The bitmask representation of the option set.

### Type Properties

[`static let bottom: CharacterControllerComponent.CollisionFlags`](/documentation/RealityKit/CharacterControllerComponent/CollisionFlags/bottom)

The bottom of capsule was hit when moving in the down direction.

[`static let none: CharacterControllerComponent.CollisionFlags`](/documentation/RealityKit/CharacterControllerComponent/CollisionFlags/none)

No collision.

[`static let side: CharacterControllerComponent.CollisionFlags`](/documentation/RealityKit/CharacterControllerComponent/CollisionFlags/side)

The side of capsule was hit when moving in the direction tangent to the up vector.

[`static let top: CharacterControllerComponent.CollisionFlags`](/documentation/RealityKit/CharacterControllerComponent/CollisionFlags/top)

The top of capsule was hit when moving in the up direction.

## Relationships

### Conforms To

[`SetAlgebra`](/documentation/Swift/SetAlgebra)

[`Equatable`](/documentation/Swift/Equatable)

[`ExpressibleByArrayLiteral`](/documentation/Swift/ExpressibleByArrayLiteral)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`OptionSet`](/documentation/Swift/OptionSet)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)