PhysicsTransform

@Immutable
data class PhysicsTransform(val vector2: PhysicsVector2 = PhysicsVector2.Zero, val rotationDegrees: Float = 0.0f)

Initial transform for a body before the simulation starts.

UI-facing interpretation:

  • vector2 is a 2D position vector (position coords).

  • rotationDegrees is the initial rotation in degrees.

Coordinate system follows Compose: +X to the right, +Y downward.

Runtime conversion helpers (see units/PhysicsUnits.kt) may map this DTO to physics units (meters/radians) depending on the configured world scale.

Constructors

Link copied to clipboard
constructor(vector2: PhysicsVector2 = PhysicsVector2.Zero, rotationDegrees: Float = 0.0f)

Properties

Link copied to clipboard

Initial rotation in degrees.

Link copied to clipboard

Initial position (UI space).