Dunk Backboard

By Jordan Calderwood

I added neon backboards above the enemies' heads when the dunk ball is enabled. The only hitch I ran into was getting the backboard to always face the player so that the dunk animation always lines up with the rim. I made a simple look at function to generate a world matrix that faces the player's position but only rotates on the Y axis. I then made sure to position the backboard at the correct height above the enemies' heads so that the animation looked perfect. It works most of the time, but lags behind in certain situations because the look at function updates inside of the enemy's update function, which is slowed to a stop during the dunk animation, preventing the backboard from fully rotating if the player dunks from behind the enemy. 

Comments

Popular Posts