metalgearsloth
f9042b3c9f
Add methods for vector2i lengths ( #3829 )
2023-03-09 16:05:23 -06:00
metalgearsloth
1688b2d9c3
Use preset matrices for 90 degree angles ( #3830 )
...
I was getting rounding issues doing matrix transforms for tiles.
2023-03-09 16:05:04 -06:00
metalgearsloth
8a827b37e6
Add enumerator for box2i edges ( #3834 )
...
Will write a test later don't @ me.
2023-03-09 16:03:29 -06:00
Pieter-Jan Briers
23fd4e1843
Refactor MSBuild spaghetti, new configurations. ( #3807 )
2023-03-06 11:12:08 -08:00
metalgearsloth
7521ed060b
Add tile edge rendering support ( #3613 )
2023-03-05 12:16:53 +11:00
metalgearsloth
72b5735349
Add a cvar for FOV color ( #3741 )
2023-02-12 08:56:45 +11:00
metalgearsloth
a9e0d9d629
Vector2i / Box2 helpers ( #3746 )
2023-02-01 12:20:41 +11:00
Zoldorf
8400c827fd
Rename Box2Rotated centre to center
...
fixes #3637
2023-01-14 18:39:57 -07:00
metalgearsloth
9125d99ec1
Fix RotateVec rounding ( #3638 )
2023-01-04 07:29:17 +11:00
Leon Friedrich
054a908efd
Generalize component trees ( #3598 )
2022-12-27 13:33:46 +11:00
Leon Friedrich
27e0c22fe2
Somewhat improve sprite processing ( #3587 )
...
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com >
2022-12-26 10:48:08 +11:00
Pieter-Jan Briers
a86a539c15
Move to .NET 7 SIMD intrinsics ( #3584 )
2022-12-18 11:44:57 +01:00
Pieter-Jan Briers
e34935c9e2
TextEdit control & a bunch of other stuff ( #3436 )
2022-11-12 03:12:49 +01:00
Alex Evgrashin
e1b9ae22b6
Box2 from two points ( #3211 )
2022-09-05 02:49:16 +10:00
wrexbe
c86e4e1ab9
Fix BuilderToMemory truncating ( #2975 )
2022-06-24 11:29:01 +02:00
metalgearsloth
e0e47ad545
Add simple raycast method ( #2937 )
2022-06-16 15:33:35 +10:00
Pieter-Jan Briers
776669b789
Remove almost all allocations from F3 menu. ( #2923 )
2022-06-10 12:59:43 +02:00
Leon Friedrich
ebeb504347
Make Eye use Matrix3.CreateTransform ( #2921 )
2022-06-09 03:10:43 +10:00
Leon Friedrich
b360c4439b
Matrix3 and Angle: add readonly and ref->in ( #2919 )
...
* Matrix3 and Angle readonly and ref->in
* fix precision
2022-06-08 17:53:17 +02:00
Leon Friedrich
b44524cd10
Matrix cleanup ( #2920 )
2022-06-08 14:52:48 +02:00
Pieter-Jan Briers
a6ab044582
Fix shadow copies in Matrix3.TransformBoxSlow
2022-06-06 18:21:06 +02:00
Leon Friedrich
487471c2d1
Faster box transform ( #2901 )
2022-06-05 00:22:00 +02:00
Leon Friedrich
cb8d2727f4
Undo all angle lerp changes ( #2884 )
2022-05-30 15:38:09 +10:00
Leon Friedrich
47d7c7cf6c
Revert ShortestDistance changes ( #2881 )
2022-05-29 04:03:31 +10:00
Kara
4e90c291b3
Make ShortestDistance not reduce angle ( #2869 )
2022-05-25 21:55:31 -07:00
20kdc
0ee87bc771
Colour batch reduction ( #2809 )
...
Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com >
2022-05-16 17:28:37 +02:00
vulppine
d201d9c688
adds color sliders, fixes issues with RGB->HSL/V
2022-04-05 12:21:59 -07:00
Vera Aguilera Puerto
bae2c390bb
Improve Color.FromHex exception message.
...
It now includes the invalid hexcode argument.
Something in content kept getting these exceptions on prod and knowing the invalid argument would be very helpful when debugging these in the future.
2022-03-23 16:00:28 +01:00
metalgearsloth
93ae74b5a7
Update nuget dependencies ( #2581 )
2022-03-14 08:57:20 +01:00
Acruid
08a52fb892
MapChunk Cleanup ( #2555 )
...
* All IPhysShapes now expose a property to get the local AABB.
* Removed IMapChunk. It's internal, we only have 1 implementation in the engine, no need for abstraction, and removing it helps perf.
* Cleaned up issues in MapChunk file.
* Encapsulate _tiles access inside MapChunk.
* Remove IEnumerable<TileRef> from MapChunk.
* Remove CollidesWithChunk
* Move CalcWorldAABB and RegenerateCollision from MapChunk to MapGrid.
Remove MapChunk.GridId.
* Removed MapChunk.GetAllTiles
* Removed the terrible mocked unit tests.
* Moved the GetTileRef functions from MapChunk to MapGrid.
* Add an event raised on MapChunk when a tile is modified.
Completely remove the IMapGrid dependency from MapChunk.
* Fix bug where you cannot change the tile damage of a tile.
2022-02-21 20:49:30 -08:00
metalgearsloth
e7c4bf7341
Don't use worldbounds for PVS ( #2473 )
2022-02-15 21:07:41 +11:00
Leon Friedrich
c077e09436
Add explicit transform matrices ( #2483 )
2022-02-02 10:03:45 +11:00
Pieter-Jan Briers
fb54d0df1c
Remove usages of Newtonsoft.Json outside StatusHost
2022-01-09 11:53:06 +01:00
Vera Aguilera Puerto
fcc16d67f7
Remove Eye Lerping from engine. ( #2371 )
2021-12-25 19:05:07 +01:00
Pieter-Jan Briers
e22d6ea65c
Use float.IsFinite in some appropriate places previously using IsNan || IsInfinity
2021-12-23 01:21:57 +01:00
Pieter-Jan Briers
a170dbd716
Use BitOperations for MathHelper.NextPowerOfTwo instead.
2021-12-23 01:12:02 +01:00
wrexbe
9d1aff3a75
Fix NextMultipleOf for int/long ( #2289 )
2021-12-09 12:27:08 -08:00
DrSmugleaf
163deff564
Fix 3000 errors
2021-12-05 18:13:33 +01:00
Paul Ritter
44649eea1c
pvs refactor ( #2247 )
...
Co-authored-by: Paul <ritter.paul1+git@googlemail.com >
2021-11-30 15:07:08 +01:00
Leon Friedrich
24a5020b42
fix rotated box contains ( #2248 )
2021-11-19 22:59:49 -08:00
20kdc
bbb9e94ce9
Arbitrary occluder rotation ( #2218 )
...
* All forms of rotated occluders now work
* Utility getters for vector CW/CCW rotations
2021-11-19 15:09:45 -08:00
metalgearsloth
05321f0381
Miscellaneous fixes for thrusters ( #2239 )
2021-11-17 22:42:00 +01:00
metalgearsloth
75fc9089c3
Add weld joints and other misc changes for docking ( #2197 )
2021-11-11 19:54:08 +11:00
Saphire Lattice
9b2a50b1a8
Make camera lerp towards the grid rotation, and keep rotation when stepping off onto the world grid ( #2187 )
...
* Make camera lerp towards the grid rotation, and keep rotation when stepping off onto the world grid
* Fix lerp targeting, add a bunch of comments
2021-11-02 13:49:28 +01:00
metalgearsloth
7da89765ac
Fix half of 45 degree sprite issues
2021-10-23 14:43:27 +11:00
Ygg01
915a812832
Add extra helpers to Direction ( #2093 )
2021-10-08 13:34:45 +02:00
20kdc
f4e3dfa601
Fix FOV shader to allow for s p i n ( #2103 )
2021-10-08 09:04:21 +02:00
metalgearsloth
ebaba35e8b
Aggressively sleep physics bodies ( #2078 )
...
* Aggressively sleep physics bodies
* Fix tests
* Also buff angular damping
2021-09-29 20:06:56 +10:00
metalgearsloth
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
Visne
a5be8e723e
Remove some unused obsolete stuff ( #2049 )
2021-09-20 10:59:50 +02:00