moveTo

open suspend fun moveTo(toLoc: LocationIfc, velocity: Double, movePriority: Int = PRIORITY, suspensionName: String? = null)
open suspend fun moveTo(toLoc: LocationIfc, velocity: GetValueIfc = entity.velocity, movePriority: Int = PRIORITY, suspensionName: String? = null)

Causes movement of the entity from its current location to the specified location at the supplied velocity.

Parameters

toLoc

the location to which the entity is supposed to move

velocity

the velocity associated with the movement

movePriority

, since the move is scheduled, a priority can be used to determine the order of events for moves that might be scheduled to complete at the same time.

suspensionName

the name of the delay. can be used to identify which delay the entity is experiencing if there are more than one delay suspension points within the process. The user is responsible for uniqueness.


open suspend fun moveTo(toLoc: LocationIfc, movePriority: Int = PRIORITY, suspensionName: String? = null)

Causes movement of the entity from its current location to the specified location using the entity's default velocity.

Parameters

toLoc

the location to which the entity is supposed to move

movePriority

, since the move is scheduled, a priority can be used to determine the order of events for moves that might be scheduled to complete at the same time.

suspensionName

the name of the delay. can be used to identify which delay the entity is experiencing if there are more than one delay suspension points within the process. The user is responsible for uniqueness.