Sorry if something similar is explained in another question already, but I have been searching for a while and have not been able to find an answer. I’m very new to Unity and scripting so please bear with my ignorance.
I’m making a 2D game where the player does not control a character directly, but guides multiple characters by interacting with the environment. Therefore I need the characters to move on their own. For starters, I would just like them to start moving to the right as soon as they hit the ground, but am not sure what the best way to do this is. I can’t seem to find code to tell an object to constantly move in one direction or how to tell if two rigidbodies (the character and the ground) are colliding. Would it be better to use several CharacterControllers or am I better off keeping them all as rigidbodies? Any help is appreciated.