Leon Friedrich and GitHub
1ae14c4bfa
Add error tolerance to physics map ( #2672 )
2022-04-01 22:07:27 +11:00
Leon Friedrich and GitHub
1d8a8e15ef
Add a is-In-container metadata flag. ( #2585 )
2022-03-31 13:23:33 +11:00
metalgearsloth and GitHub
f5d36dc9ca
Fix physics parenting bug ( #2654 )
2022-03-29 18:39:49 +11:00
a14c956ccc
Nuke EntMapIdChangedMessage ( #2621 )
...
Co-authored-by: metalgearsloth <metalgearsloth@gmail.com >
2022-03-26 18:14:56 +01:00
metalgearsloth and GitHub
facb3914a4
Fix joints crash ( #2609 )
2022-03-26 18:13:56 +01:00
97db1712f3
Fix grid traversal velocities ( #2594 )
...
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com >
2022-03-12 23:57:30 +11:00
Acruid and GitHub
31764d3c2d
Mark C# events on MapManager as Obsolete ( #2586 )
...
* Obsoleted C# grid events from MapManager.GridCollection. Use the ECS EventBus events instead.
* Obsoleted C# events from MapManager.MapCollection. Use the ECS EventBus events instead.
2022-03-07 15:51:00 -08:00
162e646404
Fix a weird issue with config ( #2546 )
...
Co-authored-by: ike709 <ike709@github.com >
2022-02-15 20:57:32 +11:00
mirrorcult and GitHub
43741dc5fc
Merge pull request #2490 from metalgearsloth/2022-02-01_game-state
2022-02-04 14:12:56 -07:00
metalgearsloth and GitHub
8e9acc9191
Reduce broadphase allocs a l'il bit ( #2493 )
2022-02-03 00:52:04 +11:00
metalgearsloth
773a068b7d
Merge remote-tracking branch 'upstream/master' into 2022-02-01_game-state
2022-02-02 22:13:17 +11:00
Leon Friedrich and GitHub
a14cce222b
Misc physics/shutdown related optimizations ( #2496 )
2022-02-02 18:12:53 +11:00
metalgearsloth
987c8e8229
Reduce gamestate allocs
...
Parallel.ForEach has no right to be that expensive.
2022-02-01 23:11:05 +11:00
metalgearsloth and GitHub
8ace0ec254
Fix entity map change crash ( #2461 )
2022-01-30 17:44:07 +11:00
metalgearsloth and GitHub
891c30c9be
Fix maplinearvelocity? ( #2317 )
2022-01-27 18:01:20 +11:00
metalgearsloth and GitHub
af861d289a
Remove some unnecessary resolves ( #2452 )
2022-01-25 14:01:44 +01:00
mirrorcult and GitHub
d324d9fcf3
Merge pull request #2429 from metalgearsloth/2022-01-17_grid-iter
2022-01-21 20:04:35 -07:00
metalgearsloth and GitHub
43081c57e7
Add acruid's funny entity query ( #2440 )
2022-01-21 10:45:10 +11:00
metalgearsloth
33333f87d2
Nuke broadphase caches
...
Scales really poorly at high grid counts and better to just lazy load.
2022-01-17 14:26:15 +11:00
Vera Aguilera Puerto and GitHub
e20cd248a0
Makes VirtualController an abstract class inheriting EntitySystem ( #2424 )
2022-01-16 18:46:48 +11:00
metalgearsloth and GitHub
dca8561881
Remove some unnecessary physics resolves and events ( #2404 )
2022-01-12 00:35:32 +11:00
2d331ff786
Broadphase fix take 2 ( #2327 )
...
Co-authored-by: Paul Ritter <ritter.paul1@googlemail.com >
2021-12-23 12:20:59 +01:00
Vera Aguilera Puerto
ba2fbd99a8
Revert "Fix broadphase RemoveBody issue ( #2318 )"
...
Caused severe issues, such as firelocks not having collision and some funny exceptions.
This reverts commit fd1a1d326c .
2021-12-11 20:59:44 +01:00
metalgearsloth and GitHub
fd1a1d326c
Fix broadphase RemoveBody issue ( #2318 )
2021-12-11 14:08:57 +01:00
Vera Aguilera Puerto
0a00a8a109
Fix build
2021-12-09 21:30:50 +01:00
3332279e75
SharedPhysicsSystem: convert parents' angular velocity to linear when leaving ( #2208 )
...
* SharedPhysicsSystem: convert parents' angular velocity to linear when leaving
Co-authored-by: ElectroJr <60421075+ElectroJr@users.noreply.github.com >
Co-authored-by: Tomeno <Tomeno@users.noreply.github.com >
* SharedPhysicsSystem: Use Center of Mass now that it supposedly works
* SharedPhysicsSystem: Use REAL MATH™ to handle rotation when reparenting
* SharedPhysicsSystem: Cache some reused matrices
Addresses:
https://github.com/space-wizards/RobustToolbox/pull/2208#discussion_r762503056
https://github.com/space-wizards/RobustToolbox/pull/2208#discussion_r762502704
* SharedPhysicsSystem: More caching, I guess
* SharedPhysicsSystem: save ONE WHOLE ACCESS
What's next, shortening variable names to make it load faster?
Co-authored-by: ElectroJr <60421075+ElectroJr@users.noreply.github.com >
Co-authored-by: Tomeno <Tomeno@users.noreply.github.com >
2021-12-09 12:18:37 -08:00
Vera Aguilera Puerto
f8bf877b61
Fix weird lifestage autorefactors.
2021-12-09 12:39:42 +01:00
metalgearsloth
d40804b41e
testing push perms
2021-12-06 14:27:59 +11:00
20kdc
8aa6fb478b
Susser Todd: Robust.Shared, Error Pass 2 "It Now Compiles"
2021-12-03 19:36:16 +00:00
Vera Aguilera Puerto
7a06db60cf
Inline UID
2021-12-03 15:53:10 +01:00
Vera Aguilera Puerto
94e6886a85
Inline Transform
2021-12-03 14:20:35 +01:00
Vera Aguilera Puerto
e93ae73e50
Inline TryGetComponent completely, for real
2021-12-03 14:17:01 +01:00
Vera Aguilera Puerto
86d05dfa1e
Inline GetComponent
2021-12-03 11:55:25 +01:00
Vera Aguilera Puerto
ce11bf4564
Inline Initialized
2021-12-03 11:24:56 +01:00
metalgearsloth and GitHub
427378f94d
Optimise physics broadphase cache ( #2224 )
2021-11-14 19:42:02 +01:00
metalgearsloth
b07187459b
Fix physics for invalid parents
2021-10-31 15:24:12 +11:00
metalgearsloth and GitHub
3ac5552276
Cache more broadphase stuff internally ( #2071 )
...
* Don't generate physics contacts for non-predicted bodies
These are all just handled on the server anyway so it's a significant waste of performance on the client for busy scenes.
* Significantly optimise broadphase updates
Cache all of the broadphase data properly now and also save the cache for physics step to boot.
* Fix cross-map broadphases
* Remove unnecessary clear
* fix
* Fixes
* Numerous ray fixes
2021-10-10 14:18:10 +11:00
metalgearsloth and GitHub
5a343477a9
Joints refactor ( #1954 )
...
* feex
* Cleanup
* Remove unneeded matrix
* Fixes
* Fix preprocessor
* localanchor cleanup
* Break this build so I remember to fix it later.
* Fixes
* Woops
* Fixes
* Fixup merge
* Stuff
* Update debug drawing
* Also dis thanks fork
* fren
* More colors
* Default drawing
* Fixes
* reviews
2021-10-04 15:34:15 +11:00
Vera Aguilera Puerto and GitHub
fbcdd63988
Gets rid of most ComponentManager usages. ( #2076 )
...
- Obsoletes more `ComponentManager` fields/properties.
2021-09-28 13:36:18 +02:00
metalgearsloth and GitHub
68576ace72
Accurate grid bounds ( #2027 )
...
* Fright night
* Shitty bounds working
* No more fixture leak
* Optimise TryFindGridAt
Should be O(1) now instead of the previous O(n) for number of fixtures
* ambush
* Merge stuffies
* Merge to master
* Fixes I guess
* Fix client sync
* Fix grid deserialization
* Jank test
* Fix deferral shitfuckery
* Optimise and remove
* Fixes
* Just werk dam u
* Optimisations
* Bunch of fixes
* FINALLY IT'S DONE
* Fixes
* Fix
* Comment
2021-09-20 21:07:31 +10:00
metalgearsloth and GitHub
80a9a82278
Fix client-side physics bodies getting stuck awake ( #1946 )
...
* Fix client-side physics bodies getting stuck awake
Wasn't a huge perf hit but it could leak a bit. Also there's a bunch of E/C stuff in here and I'll deal with it later.
* Fix broadphase leak
* Fix robust server sim
2021-08-23 15:01:08 +10:00
e5013d9e3f
Add support for struct directed events, add by-ref directed/broadcast events. ( #1931 )
...
* Add support for struct directed events.
- Turn transform events into readonly structs
* TransformComponent events have readonly fields.
* Reduce boxing allocations, add DirectedRegistration readonly struct.
* Use typeof in a few places instead of GetType
* Add overloads to allow passing directed events by ref.
* Raise transform events by ref.
* Fix occluder AnchorStateChangedEvent subscription
* Fix broadphase subscriptions
* Fix bug oops
* Fix transform system raising moveevents by value
* Don't reflect the test entity systems.
* Directed EventBus uses ref everywhere, internally
Deduplicates a bunch of code. Whoo!
* Add broadcast by-ref events
* Fix by-ref events bug using Unsafe, add new tests for sorted by-ref events.
* Port broadcast events to by-ref.
* Speed, more correctness, reduce generics bloat.
* Clean up subscription code some.
* Remove bad test.
Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com >
2021-08-21 11:37:02 +02:00
metalgearsloth and GitHub
46aead639b
Allow VirtualControllers to be retrieved by content ( #1937 )
...
Useful in SS14 for MoverController to cache some work that SharedTileFrictionController can re-use.
2021-08-12 17:55:34 +10:00
metalgearsloth and GitHub
f809375389
Cache broadphase on PhysicsMap ( #1923 )
2021-08-03 22:24:01 +10:00
metalgearsloth and GitHub
e68297eb93
Multi-thread physics contacts ( #1897 )
2021-07-29 22:13:42 +02:00
metalgearsloth and GitHub
e67812fdb4
Add shutdowns to VirtualControllers ( #1887 )
2021-07-29 13:31:34 +02:00
metalgearsloth and GitHub
b340e40c99
Cache physics transforms internally ( #1873 )
...
* Cache physics transforms internally
3 main points to cache them for:
1. Contact updates
2. Physics Islands solving
3. GetWorldManifold (though this is primarily for ss14).
Whenever multi-threading is done it will need adjustments to make sure no race conditions on accessing the transforms dictionary
* Also cache position and angle for GetWorldAABB
* Fix boogs
* woops
2021-07-26 18:23:10 +10:00
metalgearsloth and GitHub
f35a52fc24
Change KinematicControllerCollision to use WorldNormal instead ( #1872 )
...
Content cares about the WorldNormal and not the LocalNormal so this fixes pushing bugs.
2021-07-19 10:17:39 +02:00
metalgearsloth and GitHub
f780f04784
Deprecate PhysShapeGrid ( #1862 )
...
* Grid fixtures
* termp
* Fixes
* Test reversion reversion?
* Tests
* Fix Equals
* Slight box2i cleanup
* Better initializer
* Also add static grid assert
2021-07-14 18:47:17 +10:00
metalgearsloth and GitHub
aea5f83002
Preserve world velocities on parent change ( #1859 )
...
* Preserve world velocities on parent change
* Faster func
* Test
* lag
* uhh LAAAGGG
2021-07-11 12:25:02 +10:00