Skip to content

Rigidbody Move Towards Target

Moves a Rigidbody toward a target Transform using MovePosition.

Parameters

Parameter Description
Rigidbody The Rigidbody to move.
Target The target Transform.
Ignore Y If true, vertical difference is ignored.
Max Speed Maximum movement speed in units per second.
Finish Distance Finishes when the remaining distance is less than this value. Use -1 to never finish.
Finished Event Optional event sent when the move finishes.

Notes

  • This action is intended for FixedUpdate-style movement.
  • It is especially useful for kinematic Rigidbody chase behavior.