mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-04 05:17:28 +00:00
Fix for items dropped being rotated to world north (#26662)
* Fix rotation of dropped items
* combined world position rotation function for dumpable
* scuffed implementation?
* less scuffed?
* even less scuffed... I guess
* capital D
---------
Co-authored-by: Plykiya <plykiya@protonmail.com>
(cherry picked from commit 5aadb17be7)
This commit is contained in:
@@ -159,11 +159,11 @@ public sealed class DumpableSystem : EntitySystem
|
||||
{
|
||||
dumped = true;
|
||||
|
||||
var targetPos = _transformSystem.GetWorldPosition(args.Args.Target.Value);
|
||||
var (targetPos, targetRot) = _transformSystem.GetWorldPositionRotation(args.Args.Target.Value);
|
||||
|
||||
foreach (var entity in dumpQueue)
|
||||
{
|
||||
_transformSystem.SetWorldPosition(entity, targetPos + _random.NextVector2Box() / 4);
|
||||
_transformSystem.SetWorldPositionRotation(entity, targetPos + _random.NextVector2Box() / 4, targetRot);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user