project showcase

DriveSim

Built an exciting VR driving game where players race around a volcano-themed track, providing a thrilling and immersive experience focused on fun and high-speed gameplay.
Project Type
Classroom Project
Timeline
2023
Developer
Solo Developer & Designer
Further Demonstration
Code Available Upon Request

VR Racing App

Developed a Virtual Reality racing app, incorporating 3D physics and immersive gameplay to create an engaging and interactive driving experience.

scroll

Project Overview

Scope

Concept: 

Developed a virtual reality driving game using Unity where the user drives around a track.

Technical:

Collision Detection and Impact Feedback

Implemented a collision detection system that provides real-time feedback when the player's vehicle collides with objects, enhancing the realism of the experience.

Code Snippet:
1public class PlayImpact : MonoBehaviour
2{
3    public AudioSource ImpactSound;
4    public float ImpactMinSpeed;
5
6    void OnCollisionEnter(Collision MyPlayer)
7    {
8        if (MyPlayer.gameObject.CompareTag("Player"))
9        {
10            if (Mathf.Abs(ApplicationData.CurrentYVelocity) > ImpactMinSpeed)
11            {
12                ImpactSound.Play();
13            }
14        }
15    }
16}
17
  • The PlayImpact class detects collisions between the player's vehicle and other objects. If the collision speed exceeds a minimum threshold (ImpactMinSpeed), an impact sound is played to alert the player.

Dynamic Vehicle Sound and Speed Display

Created a dynamic sound controller and speed display to simulate realistic engine sounds based on the vehicle's speed. This feature helps students gauge their speed and enhances immersion.

Code Snippet:
1public class SoundController : MonoBehaviour
2{
3    public AudioSource CarSound;
4
5    void Update()
6    {
7        CarSound.volume = Mathf.Abs(ApplicationData.CurrentZVelocity / 20.0f);
8        CarSound.pitch = Mathf.Abs(ApplicationData.CurrentZVelocity / 20.0f) + 0.3f;
9    }
10}
11
  • The SoundController adjusts the car's engine sound volume and pitch relative to the vehicle's current speed (CurrentZVelocity), providing auditory feedback that reflects acceleration and deceleration.

Impact

  • Immersive Experience: The app allowing players to navigate a volcano-themed track with realistic driving mechanics and audio effects, enhancing enjoyment and engagement.
  • User Experience: The captivating environment and high-speed challenges keep players actively engaged, encouraging repeated play and competition to achieve better race times.
  • Innovation: By leveraging virtual reality technology and realistic sound design, the project demonstrates how immersive environments can be created to enhance entertainment, showcasing creative application of technology in game development.

Heading

Client
Apple
Date
November 2023
Role
Designer & Developer

Team section

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse tincidunt sagittis eros. Quisque quis euismod lorem.