Work Samples
Resume
About Me
Email Me!

Portfolio | Stefan Andersson

Work Samples
Resume
About Me
Email Me!
Bow and Arrows

Bow and Arrows

To stay true to the original GORN, I played around with its Bow a lot before-hand and tried to copy it in most ways and you can see me exploring the functionalities in the .gif:

- The bow uses the Z-axis rotation of one hand, and the direction to the other hand for the X- and Y-axes for its own rotation

- The bow spawns with arrows attached to the frame

- The player can remove and replace the attached arrows

- Pulling the string changes the strength of the shot

- Not pulling the string far enough cancels the shot

- Arrows can be retrieved from the environment

- Arrows can also be used as stabbing weapons

- Arrows can even be used as throwing weapons!

- The bow can also function as a bludgeoning weapon, if you’re out-of-ammo

Rokibes

Rokibes

Getting physically-based NPCs to hit the player with a physically-based ranged weapon may have been one of the greatest challenges of my career! Thankfully, this being a comedic game, it didn’t matter if they did it well or with any grace. My goal was simply to get the accuracy above 50% - which would likely be too deadly for the player - and scale it down from there.

I combined several techniques to achieve this:

- I manipulate the angle at which the Rokibe will face his target to adjust his foot placement

- I added an IK target that allows me to control the rotation of the torso, for smaller adjustments

- I added a second IK target that pulls the left hand towards a line drawn from the right hand to the target

- I added delays to the AI behavior to give the Rokibe time for any wobbling to settle down a bit

- Finally, I added an auto-aim system that takes the actual firing vector, checks if it’s pointed in the general direction of the target, and if so, moves the vector even closer.

And, it worked, for stationary targets at least! During gameplay, the Archers can be extremely deadly and so encourage the player to keep moving and often hit their buddies by accident, which causes them to fight amongst themselves. They’re great!

In the .gif you can see part of the aiming process. The yellow line is the direction to the player, the blue line is the non-adjusted forward vector of the arrow and the green line is the final auto-aimed vector; the direction the arrow will actually travel in.

1 2
Previous Next
Bow and Arrows
Rokibes
Back to Top
stf.andersson@gmail.com