MoveStarted

@Serializable
@SerialName(value = "MoveStarted")
data class MoveStarted(val simTime: Double, val entityId: Long, val fromX: Double, val fromY: Double, val toX: Double, val toY: Double, val velocity: Double, val duration: Double, val arrivalTime: Double, val fromZ: Double = 0.0, val toZ: Double = 0.0, val fromLocationName: String? = null, val toLocationName: String? = null) : AnimationEvent(source)

An entity began a point-to-point move at constant velocity. The renderer reconstructs the entity's position at any replay time by linearly interpolating from (fromX, fromY, fromZ) to (toX, toY, toZ) between simTime and arrivalTime. This same contract covers the agent-layer travel primitives, whose legs are also straight-line constant-velocity.

Constructors

Link copied to clipboard
constructor(simTime: Double, entityId: Long, fromX: Double, fromY: Double, toX: Double, toY: Double, velocity: Double, duration: Double, arrivalTime: Double, fromZ: Double = 0.0, toZ: Double = 0.0, fromLocationName: String? = null, toLocationName: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Names of the origin/destination locations, when the move is between named locations. Carried so a renderer can place the move by name for spatial models that have no coordinates (e.g. DistancesModel, whose from*/to* are NaN): the renderer resolves the names against the layout (decision 8H.3). Null for coordinate-only moves.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val simTime: Double
Link copied to clipboard
Link copied to clipboard
val toX: Double
Link copied to clipboard
val toY: Double
Link copied to clipboard
val toZ: Double
Link copied to clipboard