Spawning an object does not make it move
@prranitarora▲ 11 net votes
Unity Instantiate creates an object at a position and rotation; it does not provide movement by itself. If spawned obstacles stay still, check that the prefab has a movement component or Rigidbody setup and that its update logic is enabled. Keep the spawn manager responsible for choosing and creating objects, and test movement on the prefab itself.
1 COMMENT
A kinematic Rigidbody moves only through
MovePositionor the transform, so a Rigidbody that should slide needsisKinematicoff and a velocity or force. Other platform gotchas welcome in the comments.