BlackHole Bowls – Development and Process – Part 2

No comments

Game Mechanics – Bowling ball hook

200mm_blackholebowls_post

This was trial by error at it’s best. This problem kept me up at night and step by step I coded until the solution was had. As seen above the player can rotate the ball on the Y axis between a clamped amount of -45 to 45 degrees.

ice_screenshot_20170106-094719

                   

 

 

This influences the amount of hook on the ball as it travels down the lane. The magic is all thanks to a editor extension called PathMagic, no punt intended.

The code below shows how the 4 waypoints in lanePath are moved in proportion to the amount of ballSpin.y

 

ice_screenshot_20170106-100401

 

Maybe not the most elegant looking code at this stage but I am planning on further refinements.

[(more to come)]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s