Class

MovePolicy

Defines the movement policy for a spatial object.

Source set: Android
public class MovePolicy(
    public val isEnabled: Boolean = true,
    public val isStickyPose: Boolean = false,
    @get:JvmName("shouldScaleWithDistance") public val shouldScaleWithDistance: Boolean = true,
    public val onMoveStart: ((SpatialMoveStartEvent) -> Unit)? = null,
    public val onMoveEnd: ((SpatialMoveEndEvent) -> Unit)? = null,
    public val onMove: ((SpatialMoveEvent) -> Boolean)? = null,
) : DragPolicy()

Defines the movement policy for a spatial object.

This class configures how a spatial object can be moved by user interaction or programmatic changes. It provides options for enabling/disabling movement, controlling "stickiness" to its current pose, and defining callbacks for various stages of the move operation.

Last updated: