Skip to content

Instantly share code, notes, and snippets.

View clarkezone's full-sized avatar

James Clarke clarkezone

View GitHub Profile
@Matt54
Matt54 / FlowerPetal.swift
Last active October 12, 2024 21:27
A flower petal / leaf looking RealityKit view created from a LowLevelMesh
import RealityKit
import SwiftUI
struct FlowerPetal: View {
@State private var rotationAngle: Float = 0
var body: some View {
RealityView { content in
let leafEntity = try! leafEntity()
content.add(leafEntity)