Skip to content

GameObject Dock With Interactable

Docks a GameObject to an Interactable.

If the Interactable has docking configured, this action aligns the GameObject to the docking transform. If not, it simply completes and can still send the docked event.

Parameter Description
GameObject The GameObject to dock.
Interactable The Interactable to dock with.
Zero Velocity Zero Rigidbody or Rigidbody2D velocity after docking.
Smooth Duration Smooth docking duration in seconds. Set to 0 for an immediate snap.
Easing Easing function used for smooth docking transitions.
Docking Transform Output docking transform used.
Docked Event Optional event sent after docking completes.

Notes

  • Uses Rigidbody, Rigidbody2D, or CharacterController handling when present.
  • Falls back to the Interactable transform when no explicit docking transform is assigned.
  • Respects the Interactable docking position, rotation, and docking axis settings.

Example

Use this for seats, vehicles, ladders, or control panels where the actor should snap or slide into a precise position.

See also