Script Reference

VisualMoveSegment.cs

Small serializable data structure representing one visual movement segment from one world position to another.

PresentationDataMovement

Overview

VisualMoveSegment stores one visual movement step. MovementMotor creates these segments, and UnitViewMotor consumes them to move the visible model smoothly.

Inspector Settings

VisualMoveSegment is a serializable struct and does not have Inspector settings by itself.

Public API

VisualMoveSegment(Vector3 fromWorld, Vector3 toWorld, float duration)

Creates a movement segment from one world position to another over a duration.

Runtime Properties

FromWorldWorld-space start position.
ToWorldWorld-space end position.
DurationTime in seconds used by the visual playback.

Common Usage

Most users will not create VisualMoveSegment manually. MovementMotor handles this internally.