top of page

C++ - Teamwork

Teamwork

 

Team Size : 1

 

Duration: 2 weeks

 

Primary focus: Physics pick up in c++ and the 2 player puzzles

Note: Character swapping and physics gun were the main takeaways from this project

Below, lies the implementation of the primary focus

Physics picking up Header

Physics picking up Implementation

Function that associates the physics handle location to the object being targetted

Function for physically grabbing an

object that is specified to be pickup-able through type clarification and checking physics is enabled

Function for manually dropping held object down to the ground

Function for releasing held object but launching it forward instead

Player - Grab&Throw implementation

Bound event for clicking the left mouse button, which tries to throw an object, and does extra stuff if successful . i.e play throw sound and animation 

Another bound event for grabbing and releasing 

The class will return whether it wants to grab or release based on "GetIsObjectHeld()" and subsequently, do that action

Check for success

Then, do other effects as a result

Want to Play the game.

Click the star

bottom of page