API reference
API reference
Select your platform
No SDKs available
No versions available

MoveFromTarget Class

Extends IMovement

Properties

Pose Pose[Get]

Fields

bool Stopped[Get]

Member Functions

void StopMovement ( )
Moves the object to the specified target pose.
This method is essential for setting the initial target and starting the movement based on the provided pose. For an example implementation, see MoveTowardsTarget.MoveTo
Parameters
target
The target pose to which the object will move.
Updates the current target to a new pose.
This method allows for dynamic changes to the target during movement, which is useful in scenarios where the target is not static. For an example implementation, see MoveRelativeToTarget.UpdateTarget
Parameters
target
The new target pose to which the object will move.
Stops the movement and sets the pose to the specified pose.
This method provides a way to immediately halt any ongoing movement and reset the pose, which can be critical in stopping interactions gracefully when an Interactable is selected or unselected. For an example implementation, see ObjectPull.StopAndSetPose
Parameters
pose
The pose to set when the movement is stopped.
Updates the movement logic on each frame tick.
This method ensures that the movement logic is processed, keeping the movement consistent with the frame rate. For an example implementation, see ObjectPull.Tick
Did you find this page helpful?
Thumbs up icon
Thumbs down icon