IndexOutOfRangeException: Index was outside the bounds of the array.

IndexOutOfRangeException: Index was outside the bounds of the array.
PlayerController.FixedUpdate () (at Assets/scripts/PlayerController.cs:34)

( i speak spanish so it is a little hard for me to write code perfectly)

( i was trying to get some kind of mario galaxy / pikmin game (which the gravity always follows the closest world)

I speak Spanish too. Hola!

That means the planetas array is empty. It’s public, so I assume you wanted to assign the values in the inspector and forgot. Happens all the time :slight_smile:

(Completely wrong forum section, by the way, this is for UI!)

ou lo siento soy nuevo y jamas habia preguntado nada aqui