Gun Mechanics

Designing immersive and tactile weapon mechanics for VR—built to feel grounded, responsive, and wartime-authentic.

Initial Setup & Testing

  1. Imported and cleaned up an M2 Carbine model in Blender, fixing topology and assigning materials before exporting to Unity.

  2. I got familiar with Unity’s XR Interaction Toolkit and adapted the base blaster system to support realistic weapon handling.

  3. Added bullet prefabs, casing ejection, recoil physics, and animations using Unity and ChatGPT-assisted scripting.

Note: All mechanics shown here are fully playable in VR using Quest 3 via Unity’s XR Toolkit.

Reloading & Magazine System

  1. Broke down gun into interactive parts: body, trigger, hammer, magazine, bullet casing.

  2. Designed a Socket Interactor system to support inserting/removing magazines.

  3. Implemented magazine tracking logic (30 bullets per mag) and audio cues for attaching/removing.

  4. Created a detailed reload mechanic:
    remove from inventory → insert into gun → shoot

Ammo Pocket System

  1. Inspired by Batman: Arkham Shadows, experimented with a mag spawner behind the player’s FOV.

  2. Replaced it with a belt-based mag pocket system for consistent UX.

  3. Built and textured the belt in Blender, scripted it to:

    • Match player height

    • Rotate only on Y-axis

    • Ignore small head movements (dead zone logic)

    • Snap when using snap-turning

In Progress

  1. Improve reload interaction (hammer pull, sound sync)

  2. Add bullet trails and impact visuals

  3. Implement blood and hit feedback

  4. Pocket pistol and holster system

  5. Fine-tune recoil based on player distance

  6. Fix socket interactor glitches

These next steps focus on making the gun feel more responsive and grounded—balancing realism with smooth player interaction.