Commit Graph
104 Commits
Author SHA1 Message Date
metalgearslothandGitHub cd24fd46b6 Default worldpos to null (#5036)
I think this is slightly more robust than defaulting to 0 actually while still fixing the issue.
2024-04-14 14:47:30 +10:00
metalgearslothandGitHub 44cc7127fa Default SetWorldPos to 0 rotation (#5034)
More closely aligns with the old default.
2024-04-14 14:28:16 +10:00
Leon FriedrichandGitHub 0c271fc2f8 Remove uneccesary Exists() checks in container system (#5031)
* Remove `Exists()` checks in container system

* A

* A
2024-04-08 01:24:09 +02:00
metalgearslothandGitHub c38a14e78f WorldPos review fix (#5011)
Forgot I merged ghub and tried pushing and didn't check it failed.
2024-03-29 16:56:25 +11:00
c79217ab66 Rework SetWorldPosition (#4915)
* Remove ents from containers for worldpos updates

Avoids bugs from content not checking for this every time. Physics and anything else important manually uses localposition updates so shouldn't adversely impact performance that much.

* Fixes

* Fix grid pos

* Also fix the joint setter

* Add both

* Update Robust.Shared/GameObjects/Systems/SharedTransformSystem.Component.cs

Co-authored-by: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com>

---------

Co-authored-by: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com>
2024-03-29 16:49:26 +11:00
Leon FriedrichandGitHub 83371885fa Support transform states with unknown parents (#4972) 2024-03-17 11:28:50 +11:00
metalgearslothandGitHub 7aa951ca48 Add undetachable PVS flag (#4889)
Useful in some rare cases, mainly for grid-related activities.
Specifically:
- Audio entity where we never want it detached.
- FTL previs effects to show impending squish.
2024-03-16 14:58:08 +11:00
metalgearslothandGitHub 59b3ffda4f Add grid merging (#3627)
* Add grid merging

* More preliminary cleanup

* Fixes

* Fixes

* weh

* tweaks

* Tests

* weh

* Fix direction test

* Release notes
2024-01-21 17:41:04 +11:00
Leon FriedrichandGitHub f4faa1ad3d Run grid traversal on entity spawn (#4796)
* Run grid traversal on entity spawn

* Add test

* Fix tests
2024-01-02 17:25:13 +11:00
Leon FriedrichandGitHub eba58cb893 Remove RobustTree & PVSCollection (#4759)
* Cut down RobustTree

* Better LoD

* Add PvsPriority flag

* Undo cvar name change

* reorganize grafana metrics

* Fix tests

* Fix replays

* Don't try process empty chunks

* Fix move benchmark

* Fix benchmark

* Remove obsolete audio methods

* Moar benchmarks

* Rename EntityData

* A

* B
2023-12-28 09:10:13 +11:00
KaraandGitHub d416344aef MoveEvent broadcast -> C# event (#4732)
* MoveEvent broadcast -> C# event

* Broadcast MoveEvent -> C# event

* oops

* forgob

* release notes

* Update description of moveevent
2023-12-19 12:26:13 +11:00
bc84590a33 Make ChildEnumerator out value non-nullable (#4707)
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
2023-12-17 03:10:20 +11:00
250f6ca7db Obsolete TransformComponent.ChildEntities (#4706)
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
2023-12-14 17:50:29 +11:00
TemporalOroborosandGitHub 56899b4e64 Some ContainerManagerComponent ECSing (#4622) 2023-12-12 13:24:18 +11:00
metalgearslothandGitHub 0296d9635c Fix some grid setting asserts (#4580) 2023-12-11 19:49:55 +11:00
Leon FriedrichandGitHub 6f9ed8a242 Stop terminating entities from being prematurely detached to nullspace (#4675) 2023-12-10 13:18:42 +11:00
Leon FriedrichandGitHub 773b87672b Fix terminating entity reparenting bug (#4549) 2023-11-08 15:39:08 +11:00
metalgearslothandGitHub 2f6c29ab43 Add GetMapCoordinates to TransformSystem (#4556) 2023-11-07 20:23:05 -08:00
Leon FriedrichandGitHub 9e5c1e9c95 Change place-next-to helper methods (#4506) 2023-10-22 16:52:58 +11:00
Leon FriedrichandGitHub f3af813b57 Transform interpolation fixes (#4488) 2023-10-17 23:47:45 +11:00
Leon FriedrichandGitHub 74831a177e Don't attempt to insert entities into deleted containers (#4424) 2023-09-18 10:57:14 +10:00
metalgearslothandGitHub 3fd731d917 Network entity ids (#4252) 2023-09-11 09:42:55 +10:00
Leon FriedrichandGitHub 98b1862433 Add new spawn functions (#4280) 2023-08-23 18:54:55 +10:00
metalgearslothandGitHub e67d0ad3d6 Xform stuff (#4246) 2023-08-08 11:55:56 +10:00
Leon FriedrichandGitHub 1c64fa1f28 Fix TransformSystem.SetCoordinates() error logs. (#4245) 2023-08-07 11:24:26 +10:00
Leon FriedrichandGitHub 3149f99954 Fix bad DetachParentToNull() assert (#4222) 2023-08-02 12:40:59 +10:00
Leon FriedrichandGitHub 804b698172 Improve DetachParentToNull() debug asserts (#4194) 2023-08-02 04:27:18 +10:00
metalgearslothandGitHub e4a14d1ec8 Start MapGrid ECS (#4185) 2023-07-23 20:50:23 +10:00
metalgearslothandGitHub 89f78d76ab Cull Component.Startup (#4190) 2023-07-23 16:04:37 +10:00
metalgearslothandGitHub ce4016965e Add NoLerp methods for rotation (#4186) 2023-07-18 21:40:09 +10:00
metalgearslothandGitHub 7d1ad527d9 Replace Robust Vector2 with System.Numerics (#4092) 2023-07-08 14:08:26 +10:00
Leon FriedrichandGitHub f6a5e0ed93 Fix doc comments & typos (#4170) 2023-07-06 15:28:09 +10:00
metalgearslothandGitHub e763d59617 Remove some unnecessary EntityQuery<T> and warns (#4167) 2023-07-02 01:12:45 +10:00
e71f1cc8a5 Warning fixes (#4160)
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
2023-07-01 22:02:12 +10:00
metalgearslothandGitHub b82d246988 Fix ComponentTreeSystem warnings (#4164) 2023-07-01 19:23:37 +10:00
metalgearslothandGitHub 0ebdd4ac1d MapManager query changes (#4090) 2023-05-28 23:22:39 +10:00
Leon FriedrichandGitHub 7ccef97287 Remove another bad assert (#4046) 2023-05-15 16:02:53 +10:00
Leon FriedrichandGitHub b422d8d3ca Make map-grids set TransformComponent.GridUid (#4040) 2023-05-15 12:39:45 +10:00
Leon FriedrichandGitHub d2b3fc737b Fix circular transform hierarchy crash (#4002) 2023-05-05 14:54:04 +10:00
Leon FriedrichandGitHub 381c856dd4 Add transform recursion check (#3983) 2023-05-01 14:11:21 +10:00
eae1e7c108 'fix' transform coordinates assert (#3964)
Co-authored-by: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com>
2023-04-24 16:17:29 +10:00
Leon FriedrichandGitHub 4242591b56 Fix pvs chunk update bug (#3961) 2023-04-23 16:23:24 +10:00
Leon FriedrichandGitHub 8958b2123e Add stack trace to transform log. (#3938) 2023-04-17 11:36:10 +10:00
metalgearslothandGitHub 23d827e4ef Fix adding mapgrid to a map (#3890) 2023-03-29 23:02:31 +11:00
Leon FriedrichandGitHub a284159a18 Remove MapId serializer and rename WorldMap to MapId (#3872) 2023-03-27 22:38:36 +11:00
Leon FriedrichandGitHub 302af71764 EmptyContainer tweaks (#3819) 2023-03-15 11:12:04 +11:00
08AandGitHub e711b71fe9 Fix AnchorEntity replication when the coordinate doesn't change (#3810) 2023-02-28 14:22:20 +11:00
Pieter-Jan BriersandGitHub 6bdb7c040f Fix some warnings. (#3803) 2023-02-25 11:20:29 +11:00
metalgearslothandGitHub 211dfb4b11 Cull some .Owner calls around transforms (#3791) 2023-02-22 12:40:29 +11:00
Leon FriedrichandGitHub 91f1edfc81 Cache MapUid (#3687) 2023-01-14 11:50:32 +11:00