Skip to content

TransformComponent.Rotation Property

Definition

Namespace: Brine2D.ECS.Components

World-space rotation in \<b>radians\</b>. Additive through the parent hierarchy.

C#
public float Rotation { get; set; }

Property Value

System.Single

Remarks

Transform rotation uses radians while Rotation \(and [Rotation](../../../Rendering/Camera2D/Rotation.md 'Brine2D\.Rendering\.Camera2D\.Rotation')\) uses degrees. Convert with rotation * (180f / MathF.PI) when assigning to a camera.