How to activate ridigbody on object only after entering Collision Boundaries?

Hi,

I have supereasy autorunner type of game with platform levels spawning off the screen and coming towards player character to create the feeling of movement. On certain aplatforms I wanted to introduce a huge rocks falling to ground which player would have to avoid. So I added Rigidbody component and Circle collider 2D but the problem is - it starts falling immediately at the moment when the platforms is born, which means when the platforms approaches the player the rock has already fallen and just lies on the ground. How do I trigger it on a certain distance for example on collision with some larger Circle collider2D with much bigger radius used only for detecting “collision”? Any help is much appreciated! Thanks in advance!

Keep the rigidbody on the object, but enable the “Is Kinematic” option for it. Then when the platform gets within range of the player (where you want the physics to start being used), disable “Is Kinematic.”

1 Like

Sounds cool, but how would it look in code? I’m not a coder unfortunately… any way of doing it just by tweaking some components?