Physics

At the start of the project, as I was the person in charge of the main mechanic, I modified the physics system, using physX, of the game to accommodate our needs.

That left me to understand better than the rest of the team how to interact with the library and how to make it work. For that reason, I ended up being the one in charge of the physics of the game.


Player attachment to moving objects

For the moving objects, we need to transfer its movement to the player. In the case of the shadows/pictograms, the movement needed to be scaled. Of course, in the case of rotation, the player needs to move with it.

To accomplished it, the game needs to notify to the physics engine how much the player is moving to be attached to that object. For that reason, the game notifies to the player when it interacts with an object and how much it's moving frame by frame, so it can be added to the movement.