One Logo Pool Ball
RealityFoundation · IOS API REFERENCE

CharacterControllerComponent.CollisionFlags

struct · iOS 15.0+ · SDK 27.1

struct CollisionFlags

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

Members (6)

get · iOS 15.0+

top

TypeScript
get top(): CharacterControllerComponent_CollisionFlags
Swift declaration
static let top: CharacterControllerComponent.CollisionFlags

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

get · iOS 15.0+

none

TypeScript
get none(): CharacterControllerComponent_CollisionFlags
Swift declaration
static let none: CharacterControllerComponent.CollisionFlags

No collision.

get · iOS 15.0+

side

TypeScript
get side(): CharacterControllerComponent_CollisionFlags
Swift declaration
static let side: CharacterControllerComponent.CollisionFlags

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

get · iOS 15.0+

bottom

TypeScript
get bottom(): CharacterControllerComponent_CollisionFlags
Swift declaration
static let bottom: CharacterControllerComponent.CollisionFlags

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

init · iOS 15.0+

init

TypeScript
init(rawValue: number): CharacterControllerComponent_CollisionFlags
Swift declaration
init(rawValue: UInt8)

Initializes collisions flags from a raw value.

get · iOS 15.0+

rawValue

TypeScript
getRawValue($self: CharacterControllerComponent_CollisionFlags): number
Swift declaration
let rawValue: UInt8

The bitmask representation of the option set.

Skipped declarations

No declarations were skipped in this snapshot.

All RealityFoundation types →