Purges uses of TransformComponent.WorldMatrix and TransformComponent.InvWorldMatrix (#34944)
This commit is contained in:
@@ -71,8 +71,7 @@ public sealed partial class ExplosionSystem
|
||||
{
|
||||
var targetGrid = Comp<MapGridComponent>(referenceGrid.Value);
|
||||
var xform = Transform(referenceGrid.Value);
|
||||
targetAngle = _transformSystem.GetWorldRotation(xform);
|
||||
targetMatrix = xform.InvWorldMatrix;
|
||||
(_, targetAngle, targetMatrix) = _transformSystem.GetWorldPositionRotationInvMatrix(xform);
|
||||
tileSize = targetGrid.TileSize;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user