visionOS Game
Skills
visionOS
RealityKit
ARKit
SwiftUI
Swift
A visionOS tower defense game played with the hands.
#visionOS #RealityKit #ARKit #SwiftUI #HandTracking
One day when using my headset I realized that it was a magical feeling to get to reach out and touch a 3D object, especially with the immersive stereoscopic rendering that Vision Pro provides. I ideated different game ideas and landed on a tower defense game where the user stands above a miniature Mars colony and defends it against asteroids that fall towards the surface.
At first the objects fell like rain all around the user, but I realized this hurt the neck, so I instead made them spawn more around eye level, shoot towards the user and fall with gravity.
The Mars colony buildings will adjust their elevations to match the surfaces around the user, based on ARKit plane tracking data.
I used instancing for certain building pieces that were replicated frequently, to enhance performance.
I built the rocket silo animation myself.
The particle effect on the falling objects increases its emission rate as the objects reduce their altitude. The objects fly faster as the game progresses, up to a limit.
In the latest version of the game, when the objects impact the surface, they leave a crater behind, and there is an explosion particle effect, and the buildings break apart into pieces that fly up into the air. I added a high resolution view of the stars above the user.
