<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PHASE",
  "identifier" : "/documentation/PHASE/PHASEObject",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "PHASE"
    ],
    "preciseIdentifier" : "c:objc(cs)PHASEObject"
  },
  "title" : "PHASEObject"
}
-->

# PHASEObject

An object in the scene.

```
class PHASEObject
```

## Overview

This class models a member of your app’s scene by defining a 3D position and orientation.

The following subclasses derive from this class:

- [`PHASESource`](/documentation/PHASE/PHASESource): An object that plays audio from a 3D location and orientation in a scene.
- [`PHASEListener`](/documentation/PHASE/PHASEListener): A central point of reference that defines the area within the scene that’s most audible to the user.
- [`PHASEOccluder`](/documentation/PHASE/PHASEOccluder): An object with a shape and position that blocks audio from reaching the listener.

The [`children`](/documentation/PHASE/PHASEObject/children) array holds instances of this class to position and orient them relatively.

## Topics

### Creating an Object

[`-  initWithEngine:`](/documentation/PHASE/PHASEObject/init(engine:))

Creates an object in the scene.

### Managing the Hierarchy

[`children`](/documentation/PHASE/PHASEObject/children)

Objects that position and orient in the scene relative to the given object.

[`parent`](/documentation/PHASE/PHASEObject/parent)

The object that this instance positions and orients relative to in the scene.

[`-  addChild:error:`](/documentation/PHASE/PHASEObject/addChild(_:))

Adds the given object as a child.

[`-  removeChild:`](/documentation/PHASE/PHASEObject/removeChild(_:))

Removes the given object as a child.

[`-  removeChildren`](/documentation/PHASE/PHASEObject/removeChildren())

Removes all child objects from the given object.

### Defining a Pose

[`transform`](/documentation/PHASE/PHASEObject/transform)

A matrix, in local coordinates, that determines the object’s pose in the scene.

[`worldTransform`](/documentation/PHASE/PHASEObject/worldTransform)

A matrix, in scene coordinates, that determines the object’s pose in the scene.

### Inspecting the Orientation

[`forward`](/documentation/PHASE/PHASEObject/forward)

A vector that points forward in the local coordinate space.

[`right`](/documentation/PHASE/PHASEObject/right)

A vector that points right in the local coordinate space.

[`up`](/documentation/PHASE/PHASEObject/up)

A vector that points up in the local coordinate space.

## Relationships

### Inherited By

[`PHASEListener`](/documentation/PHASE/PHASEListener)

[`PHASEOccluder`](/documentation/PHASE/PHASEOccluder)

[`PHASESource`](/documentation/PHASE/PHASESource)

### Conforms To

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

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

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

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

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

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

[`NSCopying`](/documentation/Foundation/NSCopying)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)