Home

Thursday, April 17, 2025

CAGD 373 Blog Post 2

Sprint 2

04/17/25

Final Group Game Scene Project

Hello everyone and welcome back to my blog. Today I will be talking about the work I was able to complete this time around for Sprint 2 of our team's Final Group Game Scene Project. For this sprint I was able to shift gears into my programmer side of my role and tackle creating some cool gun aiming and firing mechanics.






I started by working on our players' gun mechanic since we are thinking of creating some sort of way to interact with our group's game scene with this cool mechanic. I started off by importing our player controller prefab into our scene and then creating a simple gun prefab that I could use to align with our players camera. After that came the hard part of making our gun sit at one position when the player is idling to then making it seem like the player is now aiming with their gun. I was able to do this by simply manipulating the vector3 position of the gun every time the player pressed the right mouse button. While doing this I also wanted to change the players FOV so that they can physically zoom at their targets when they are aiming. I was able to accomplish this by making the camera a public transform in my gun script and then assigning it to our inspector. 




The last and final thing I was able to do this sprint was to create the crosshairs in the middle of the screen so that the player could have a target to aim at. This was a simple Png that I was able to pull and incorporate into our UI. That's it for this sprint, I will see you next week.






No comments:

Post a Comment

CAGD 373 Game Scene Final Project Post

05/13/25 Hello everyone and welcome back to my blog. Today is the day I finally go over the work I was able to complete for our team's F...