I am trying to recreate pong on a vex iq gen 2 brain. Have any tips for collision?
I don’t think that vexcode has any way to do collision. I tried to make pong on an EXP brain but got stuck on collisions. It may be possible to do, but it may be difficult.
This Mario game may have something that could help you
You can have a velocity x variable and a velocity y variable, then change the position in x and y by those variables every tick. Then, when the ball’s coordinates go into a spot you want to hit, multiply one of the velocity variables by -1. If it hits a horizontal wall multiply the y velocity by -1, and if it hits a vertical wall multiple the x velocity by -1. This should make pong-style bouncing.