This section presents code samples extracted from projects I made.
« Software is a great combination between artistry and engineering. » -Bill Gates
In this demo, the player can shoot a projectile with a slingshot by dragging with the mouse, as you would do in the popular Angry Birds game.
The code uses delegate events and a Helper class that draws the projected trajectory of the projectile.Links:
In this demo, the player can grab objects with a gravity gun by clicking on it with the mouse, as you would do in Half-Life or Portal game.
In addition to this, the code prevents the player from flying on an object, it breaks the link with the grabbed object when a force reaches a certain threshold, and it auto snap rotates the grabbed object.Links: