Thanks for being a part of WWDC25!

How did we do? We’d love to know your thoughts on this year’s conference. Take the survey here

RotationSystem and RotationComponent API Updates for visionOS 26 Beta

Are there any changes to RotationSystem: System and RotationComponent: Component that I should be aware of to see if I need to update my use in my visionOS app?

Hello @aandyzoom01 , thank you for your question!

Could you clarify what it is you are trying to do?

RealityKit does not have any built in types called "RotationSystem" or "RotationComponent", however you could certainly create these types yourself.

The recommended API for rotating an entity is still to use the setOrientation(_:relativeTo:) API for Entity.

You can rotate an entity in a custom system by multiplying its existing orientation by the rotation you want to apply to the entity:

    // This is an example update function for a custom RealityKit system.
    func update(context: SceneUpdateContext) {

        // Get the entities that should rotate using a query.
        // NOTE: RotateComponent is not a type that exists in RealityKit! You will need to create this component yourself.
        for entity in context.entities(matching: EntityQuery(where: .has(RotateComponent.self)), updatingSystemWhen: .rendering) {
            
            // Get the delta time from the SceneUpdateContext.
            let deltaTime = Float(context.deltaTime)
            // Rotate the entity once per second.
            let newRotation = entity.orientation(relativeTo: nil) * simd_quaternion(.pi * 2 * deltaTime, [0, 1, 0])
            // Set the new rotation on the entity.
            entity.setOrientation(newRotation, relativeTo: nil)
        }
        
    }
RotationSystem and RotationComponent API Updates for visionOS 26 Beta
 
 
Q