I have a green animated rectangle and another rectangle (blue). I want the blue rectangle to stay on the green one when he’s moving horizontally.
Setting the blue rectangle as a child to the animated rectangle won’t work for me because of the circle collider. It tells me when the animation should trigger.
I can somehow fix this by adding the circle collider to a child (and move the logic scripts here) and add a rectangle collider on top of the green rectangle so i can preciselly detect when user isn’t on the platform, but it takes time and i want an easier method. Is there any?