Skip to content

ParticleSystem.LocalToWorldPos(Vector2, TransformComponent) Method

Definition

Namespace: Brine2D.Systems.Rendering

Converts a local-space particle position to world space, applying the entity's full transform \(translation, rotation, scale\). Used when computing world positions for sub-emitter spawn points on local-space emitters so that all three triggers — death, birth, and lifetime-fraction — correctly account for a rotated or scaled entity.

C#
private static System.Numerics.Vector2 LocalToWorldPos(System.Numerics.Vector2 localPos, Brine2D.ECS.Components.TransformComponent transform);

Parameters

localPos System.Numerics.Vector2

transform TransformComponent

Returns

System.Numerics.Vector2