PickupMovementFixer.md 667 B

Pickup Following Mover Fix

Keeps pickups riding on a moving object (a lift, a platform, a conveyor) instead of being left behind when it's moved by an Animator or a script.

Requires:

  • Collider set to Is Trigger, covering the space above the moving object where pickups rest
  • The trigger moves with the target (make it a child of it)

Target Object - Type: GameObject

  • The moving object to follow.

Script Behavior:

  • While the target moves, unheld pickups (on the Pickup layer, 13) inside the trigger move with it.
  • When it stops, they stop with it, then fall and slide on their own as usual.
  • A synced pickup is moved only by its owner.