Commit Graph

68 Commits

Author SHA1 Message Date
iam 9215e33e80
Remove faces and cartesian product (#762) 2022-03-14 00:32:18 +01:00
themode df64ce9653 Remove dependency from instance/entity for collisions 2022-03-13 23:28:31 +01:00
themode 60f583b179 Cache shapes size 2022-03-13 21:27:56 +01:00
themode 11708a1c1a Remove dedicated Faces class 2022-03-13 21:20:11 +01:00
iam 37a18eced5
Physics Test + revert (#742) 2022-03-13 18:53:20 +01:00
themode a29a51ee0a Greatly reduce the number of checks 2022-03-09 20:14:42 +01:00
themode e7545e470f Cache compiled pattern 2022-03-09 19:47:42 +01:00
themode d3432011d9 Avoid boxing and streams 2022-03-09 19:45:05 +01:00
iam 6891a530f5
Block Collision Physics (#730) 2022-03-09 19:08:42 +01:00
TheMode ba77a9ea10 Make BlockSetter/Getter inner interfaces inside Block
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-10 16:51:21 +01:00
TheMode b308ce5baa
Update to Java 17 (#462) 2021-10-22 01:55:55 +02:00
TheMode d53ef36586 Use an array instead of list
Signed-off-by: TheMode <themode@outlook.fr>
2021-09-18 22:14:46 +02:00
TheMode a3ff3b25c4 Add hint in BlockGetter to only retrieve a block type at a position (ignore the handler + nbt)
Signed-off-by: TheMode <themode@outlook.fr>
2021-09-18 16:18:41 +02:00
TheMode 8cbd6460f4 Cleanup...
Signed-off-by: TheMode <themode@outlook.fr>
2021-09-05 03:40:30 +02:00
Шандуренко Константин Владимирович 224345853e BoundingBox#PositionedPoints is immutable now 2021-08-31 16:16:43 +03:00
Шандуренко Константин Владимирович 32b33d6bf9 Code review 2021-08-31 15:55:24 +03:00
Шандуренко Константин Владимирович 34ec59dc68 ImmutableList.of() to List.of() 2021-08-31 15:52:38 +03:00
Шандуренко Константин Владимирович a69cefd8d4 Fixing BoundingBoxes caching 2021-08-31 15:39:39 +03:00
Шандуренко Константин Владимирович 66e8ac2dc3 Code review 2021-08-22 17:47:52 +03:00
Шандуренко Константин Владимирович f2f592209a Entity#getLineOfSightEntity and BoundingBox#intersect(Point, Point) 2021-08-22 16:56:34 +03:00
TheMode c89f049dad Reduce bounding box allocation 2021-08-13 10:12:28 +02:00
TheMode fe28ba6f04 Fast exit in CollisionUtils 2021-07-13 02:32:44 +02:00
TheMode 9e8d0c9ce0 Micro collision optimization + style 2021-07-11 20:20:01 +02:00
TheMode d8b92d23ba Improve collision 2021-07-09 20:43:12 +02:00
TheMode 4f20580482 Use block position for intersection check 2021-07-09 20:25:22 +02:00
TheMode 45d7420397 Remove most Position/BlockPosition usage 2021-07-08 18:56:40 +02:00
TheMode fff78cdf94 Move coordinate package 2021-07-08 13:48:28 +02:00
TheMode ca2a2eb233 Rename with to apply 2021-07-08 13:22:04 +02:00
Németh Noel 8b35e0db9a Use remaining length when needed 2021-07-07 18:07:27 +02:00
Németh Noel 5ae26c44e1 Initial npe fix 2021-07-07 17:56:17 +02:00
Németh Noel da5abd3d4e rename getters 2021-07-06 22:59:45 +02:00
Németh Noel 65a97e5b00 Initial collision update 2021-07-06 22:26:11 +02:00
TheMode 28dca16b29 Initial position api implementation 2021-07-06 20:44:24 +02:00
TheMode 796b6820ce Start implementing the new coordinate API 2021-07-05 09:10:03 +02:00
TheMode 94e92741c8 Reuse chunk code 2021-06-12 13:37:37 +02:00
TheMode 86f7fa7e27 Fix more errors 2021-05-24 21:39:30 +02:00
TheMode 20ed4926c8 Fix entity collision 2021-04-28 15:02:06 +02:00
TheMode a6314abbad Improve physics performance 2021-04-24 12:41:52 +02:00
TheMode 6e0202c33b Fix math, improve physics performance 2021-04-11 03:21:38 +02:00
themode 5f75ea7d3a Remove unnecessary casts 2021-01-25 19:33:53 +01:00
themode c01736f863 Use doubles instead of floats to represent Position and Vector 2021-01-25 13:47:13 +01:00
themode 7019b7da85 Fix onGround field and gravityTickCount 2021-01-04 03:04:45 +01:00
themode feb4783988 Small optimization for entity velocity 2020-12-26 18:52:44 +01:00
Felix Cravic f7c05a445e Remove #copy 2020-12-09 21:34:53 +01:00
Felix Cravic cd44732cbc Velocity cleanup 2020-12-04 19:19:30 +01:00
Felix Cravic 63196e024b Fixed EntityTeleportPacket being sent for every position fields modification and use a proper entity movement packet instead of velocity 2020-11-26 12:46:49 +01:00
themode 3ddca82aaa Cleanup 2 2020-11-10 08:01:27 +01:00
themode 0184ada9a0 Renamed #clone to #copy 2020-10-31 18:03:15 +01:00
themode c4f36a9cea Cleanup + comments 2020-10-31 05:09:30 +01:00
themode 3cb880cf80 General cleanup 2020-10-22 12:55:53 +02:00