Skip to content

Instantly share code, notes, and snippets.

View radicalappdev's full-sized avatar

Joseph Simpson radicalappdev

View GitHub Profile
@radicalappdev
radicalappdev / Helpers3D.swift
Created November 1, 2025 17:54
Some Helpers I use in Project Graveyard
struct Helpers3D {
/// Constrains a quaternion rotation to only the Y axis (up/down rotation).
///
/// - Parameter rotation: The input quaternion rotation that may contain X, Y, and Z components.
/// - Returns: A new quaternion rotation that only affects the Y axis, ignoring X and Z components.
static func constrainRotationToYAxis(_ rotation: simd_quatf) -> simd_quatf {
let yAngle = yawAngle(from: rotation)
return yAxisRotation(from: yAngle)
}
@radicalappdev
radicalappdev / Example018.swift
Last active December 12, 2024 12:45
Draft of Example 018 - Using handAnchors(at:) for predicted hand positions
struct Example018: View {
let arSession = ARKitSession()
let handTrackingProvider = HandTrackingProvider()
let leftCollection = Entity()
let rightCollection = Entity()
let tipJoints: [HandSkeleton.JointName] = [
.thumbTip, .indexFingerTip, .middleFingerTip, .ringFingerTip, .littleFingerTip
]
//
// File.swift
// RealityKitContent
//
// Created by Joseph Simpson on 12/8/24.
// Thanks Cursor and Claude!
import Foundation
@preconcurrency import RealityKit
<?php
/*
Plugin Name: Rad Webhook Demo
Plugin URI: <https://vrhermit.com/?p=4154>
Description: Adds custom WP JSON endpoints that use the FileMaker OData API to submit form data to FileMaker.
Version: 1.0
Author: radicalappdev
Author URI: <https://radicalappdev.com/>
*/