Skip to content

Move Rigidbody / Rigidbody2D Sequential

Move Sequential

This sequential moves a Rigidbody or Rigidbody2D with animation complying with the rigidbody's interpolation setting.

Tip

If you just want to move a transform (not a rigidbody specifically), use Move Transform instead.

Base Properties

To learn about the common Base Properties, please see Base Sequential

Target Object Options

This sequential derives from Object Returner Sequential and gets all its properties from that sequential. So, to learn about the Target Object Options please see Object Returner Sequential

Animation Options

This sequential derives from Animation Sequential and gets all of its properties. So, to learn about the __Animation Options please see Animation Base

Target Object

Target Object (or Target Objects if Multiple Objects are returned) needs to be Rigidbody type. So please make sure that the game object assigned in this field has a Rigidbody component attached. Otherwise you'll see a runtime error log when this sequential plays.

Move Type

This option determines the calculation of the end value of the move action.

Initial to Value

This moves the target rigidbody from its initial value (the value before this sequential starts) to the Move Value.

From Value to Initial

This teleports the target rigidbody to the Move Value and then moves it to its initial value again.

Initial Plus Value

This adds Move Value to the target rigidbody's initial value and moves it to the calculated position.

For example, to move a rigidbody 10 units right and 20 units up, but if you don't know the exact target position you can use this option with Move Value (10,20).

Initial Multiply Value

This multiplies each axis of the rigidbody's initial position with the corresponding axis of the Move Value and moves the target rigidbody to the calculated position.

From A to B

This lets you define the starting position and end position of the move animation independent from the initial position of the target rigidbody.

From A to B

Move Value

This is the Vector3 value that determines the end position in accordance with the Move Type option as explained above.

It's possible to assign different kind of values to this property (e.g. directly, randomly, from variable).

For example, to move the target transform to the position of another transform, you can select Another Transform or Sequential for the value assigning option and then choose the transform to go.

Info

To learn more about assigning values with different options, see Value Assign

Tip

When you assign Move Value with Sequential option, you need to connect the related sequential's Sequential output port to this sequential's To Position input port.

From Position

This is only available when the Move Type is From A to B.

This is the starting position of the move animation.

Tip

When you assign From Position with Sequential option, you need to connect the related sequential's Sequential output port to this sequential's From Position input port.

To Position

This is only available when the Move Type is From A to B.

This is the end position of the move animation.

Tip

When you assign To Position with Sequential option, you need to connect the related sequential's Sequential output port to this sequential's To Position input port.

Animate Local Position

This has no effect on this sequential. It's there because this sequential is derived from Move Transform Sequential

Offset

This adds an offset to the end position that's calculated by the Move Type and Move Value parameters.

Tip

This is especially useful when you set the Move Value to Another Transform or Sequential because you may want to move the target rigidbody to another transform's position but with an offset.