I am trying to make a jump mechanic for my game, and need to convert the players velocity (currently in the form of a vector2) to a float array so that I can get the velocity in each individual direction instead of a vector.
Well there’s vector.x and vector.y to get those properties, but they also have indexer support. Vector[0] and Vector[1] will work just fine.