Bumpers (in Addition to Spinners)

In addition to the spinners rick coded in the video, I wanted to try adding something fresh. My first thought was those flippers you see in pinball games (had trouble figuring that one out since I didn’t want the player bouncing off all sides of it). But stemming off of that I went to the next best thing: bumpers!

The vector math helped with this one in terms of setting a direction for force to be applier once the player collides with the rigidbody. Then it was just a matter of tweaking how much rejection force I wanted to be applied. (Needless to say 200 was way to high - ultimately I set it to 5.0f in the context of the surrounding maze.)

Didn’t set these with the objectHit script since I thought it would be more fun if a player could actually use them for a little extra speed when approaching at the right angle.

1 Like

How do you feel about vector math?

I think I need to brush up a bit more, but at least I understood what I was doing this time at the concept level.

Privacy & Terms