axiom-realitykit-ref
БесплатноБез исполняемых скриптовНе проверенRealityKit API reference — Entity, Component, System, RealityView, Model3D, anchor types, material system, physics, collision, animation, audio, accessibility
от ComeOnOliver★ 67 звёзд на GitHubОб этом скилле
RealityKit API Reference
Complete API reference for RealityKit organized by category.
When to Use This Reference
Use this reference when:
- Looking up specific RealityKit API signatures or properties
- Checking which component types are available
- Finding the right anchor type for an AR experience
- Browsing material properties and options
- Setting up physics body parameters
- Looking up animation or audio API details
- Checking platform availability for specific APIs
Part 1: Entity API
Entity
// Creation
let entity = Entity()
let entity = Entity(components: [TransformComponent(), ModelComponent(...)])
// Async loading
let entity = try await Entity(named: "scene", in: .main)
let entity = try await Entity(contentsOf: url)
// Clone
let clone = entity.clone(recursive: true)
Entity Properties
| Property | Type | Description |
|---|---|---|
name |
String |
Identifier for lookup |
id |
ObjectIdentifier |
Unique identity |
isEnabled |
Bool |
Local enabled state |
isEnabledInHierarchy |
Bool |
Effective enabled (considers parents) |
isActive |
Bool |
Entity is in an active scene |
isAnchored |
Bool |
Has anchoring or anchored ancestor |
scene |
RealityKit.Scene? |
Owning scene |
parent |
Entity? |
Parent entity |
children |
Entity.ChildCollection |
Child entities |
components |
Entity.ComponentSet |
All attached components |
anchor |
HasAnchoring? |
Nearest anchoring ancestor |
Entity Hierarchy Methods
entity.addChild(child)
entity.addChild(child, preservingWorldTransform: true)
entity.removeChild(child)
entity.removeFromParent()
entity.findEntity(named: "name") // Recursive search
Entity Subclasses
| Class | Purpose | Key Component |
|---|---|---|
Entity |
Base container | Transform only |
ModelEntity |
Renderable object | ModelComponent |
AnchorEntity |
AR anchor point | AnchoringComponent |
PerspectiveCamera |
Virtual camera | PerspectiveCameraComponent |
DirectionalLight |
Sun/directional | DirectionalLightComponent |
PointLight |
Point light | PointLightComponent |
SpotLight |
Spot light | SpotLightComponent |
TriggerVolume |
Invisible collision zone | CollisionComponent |
ViewAttachmentEntity |
SwiftUI view in 3D | visionOS |
BodyTrackedEntity |
Body-tracked entity | BodyTrackingComponent |
Part 2: Component Catalog
Transform
// Properties
entity.position // SIMD3<Float>, local
entity.orientation // simd_quatf
entity.scale // SIMD3<Float>
entity.transform // Transform struct
// World-space
entity.position(relativeTo: nil)
entity.orientation(relativeTo: nil)
entity.setPosition(pos, relativeTo: nil)
// Utilities
entity.look(at: target, from: position, relativeTo: nil)
ModelComponent
let component = ModelComponent(
mesh: MeshResource.generateBox(size: 0.1),
materials: [SimpleMaterial(color: .red, isMetallic: true)]
)
entity.components[ModelComponent.self] = component
MeshResource Built-in Generators
| Method | Parameters |
|---|---|
.generateBox(size:) |
SIMD3<Float> or single Float |
.generateBox(size:cornerRadius:) |
Rounded box |
.generateSphere(radius:) |
Float |
.generatePlane(width:depth:) |
Float, Float |
.generatePlane(width:height:) |
Vertical plane |
.generateCylinder(height:radius:) |
Float, Float |
.generateCone(height:radius:) |
Float, Float |
.generateText(_:) |
String, with options |
CollisionComponent
let component = CollisionComponent(
shapes: [
.generateBox(size: SIMD3(0.1, 0.2, 0.1)),
.generateSphere(radius: 0.05),
.generateCapsule(height: 0.3, radius: 0.05),
.generateConvex(from: meshResource)
],
mode: .default, // .default or .trigger
filter: CollisionFilter(
group: CollisionGroup(rawValue: 1),
mask: .all
)
)
ShapeResource Types
| Method | Description | Performance |
|---|---|---|
.generateBox(size:) |
Axis-aligned box | Fastest |
.generateSphere(radius:) |
Sphere | Fast |
.generateCapsule(height:radius:) |
Capsule | Fast |
.generateConvex(from:) |
Convex hull from mesh | Moderate |
.generateStaticMesh(from:) |
Exact mesh | Slowest (static only) |
PhysicsBodyComponent
let component = PhysicsBodyComponent(
massProperties: .init(
mass: 1.0,
inertia: SIMD3(repeating: 0.1),
centerOfMass: .zero
),
material: .generate(
staticFriction: 0.5,
dynamicFriction: 0.3,
restitution: 0.4
),
mode: .dynamic // .dynamic, .static, .kinematic
)
| Mode | Behavior |
|---|---|
.dynamic |
Physics simulation controls position |
Установить axiom-realitykit-ref в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл axiom-realitykit-ref?
RealityKit API reference — Entity, Component, System, RealityView, Model3D, anchor types, material system, physics, collision, animation, audio, accessibility
Как установить скилл axiom-realitykit-ref?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл axiom-realitykit-ref запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic