Files
sbox-public/engine/Sandbox.System/Math/Transform.cs
Lorenz Junglas 5b069768da Fix transform equality regression from 7b853ce (#4504)
Fix transform update regression from 7b853ce

Rotation.AlmostEqual default threshold was too loose (0.0001 dot-product ~ 1.62° angular tolerance), causing SetLocalTransform to silently drop small transform updates.

- Rotation.AlmostEqual: default delta 0.0001 -> 0.0000001 (~0.05°), use MathF.Abs(Dot) to handle antipodal quaternions (q === -q)
- Transform.AlmostEqual: use Rotation's own default instead of passing the Position/Scale delta to a dot-product metric
2026-04-09 11:22:05 +00:00

11 KiB