Commit Graph
129 Commits
Author SHA1 Message Date
MihailRis f43cc93cd2 update project includes format 2024-08-10 01:37:48 +03:00
InfiniteCoder 85239004e3 window/ 2024-08-06 00:07:33 +03:00
InfiniteCoder f66d0ce7fd physics/ 2024-08-06 00:07:00 +03:00
InfiniteCoder 79ccde35b7 lighting/ 2024-08-06 00:05:41 +03:00
InfiniteCoder 9f9b9f2d64 world/ 2024-08-05 23:49:11 +03:00
InfiniteCoder c7755040bd voxels/ 2024-08-04 22:42:44 +03:00
InfiniteCoder 5c9bc83bbd items/ + objects/ + util/ 2024-08-04 22:26:08 +03:00
InfiniteCoder f837bc5158 Merge remote-tracking branch 'origin/main' 2024-08-04 22:04:23 +03:00
MihailRis e45f63c315 fix: camera shaking while paused 2024-08-04 16:53:05 +03:00
InfiniteCoder e1e3456139 content/ 2024-08-04 12:45:08 +03:00
InfiniteCoder d5dc68dd38 Root includes 2024-08-04 10:24:11 +03:00
MihailRis 47db626145 refactor: PVS-Studio warnings fixes 2024-08-04 01:30:52 +03:00
MihailRis 245b39be62 refactor: PVS-Studio warnings fixes 2024-08-04 01:12:42 +03:00
Vyacheslav Ivanov 815ba45747 Merge remote-tracking branch 'origin/pvs-fix' into pvs-fix 2024-08-03 23:15:15 +03:00
Vyacheslav Ivanov 3621e7ce1b fix: PVS-Studio V522 mark false
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 23:00:10 +03:00
MihailRis e014931e1e fix: selection update latency 2024-08-03 22:36:18 +03:00
Vyacheslav Ivanov bbf33e8e4d format: reformat project
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 19:53:48 +03:00
Vyacheslav IvanovandMihailRis 3fa7fac4df fix: optimization: PVS-Studio warning V830
Replaced 'std::optional::value()' with '*' operator to improve performance.

Using 'std::optional::value()' involves additional overhead compared to using the '*' or '->' operators. This change ensures more efficient access to the underlying value of the optional when you are certain that it contains a value.

Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 17:47:15 +03:00
Vyacheslav IvanovandMihailRis 97a0bb5776 fix: optimization: PVS-Studio warning V835
Passing cheap-to-copy arguments by reference can sometimes lead to decreased performance. This change ensures that the argument is passed by value, which is more efficient in cases where the argument is inexpensive to copy.

Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 17:46:13 +03:00
MihailRisandGitHub ba046a52c0 Revert "fix: optimization: Various PVS-Studio warnings" 2024-08-02 14:51:44 +03:00
Vyacheslav Ivanov e9a5f18bc3 fix: optimization: PVS-Studio warning V830
Replaced 'std::optional::value()' with '*' operator to improve performance.

Using 'std::optional::value()' involves additional overhead compared to using the '*' or '->' operators. This change ensures more efficient access to the underlying value of the optional when you are certain that it contains a value.

Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-02 02:38:54 +03:00
Vyacheslav Ivanov 1bdc9cf759 fix: optimization: PVS-Studio warning V835
Passing cheap-to-copy arguments by reference can sometimes lead to decreased performance. This change ensures that the argument is passed by value, which is more efficient in cases where the argument is inexpensive to copy.

Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-02 02:38:54 +03:00
MihailRis d6696b54cb add 'normal' argument to on_use_on_block event 2024-07-29 15:23:04 +03:00
MihailRis f485ba5e54 fix: invalid block segment was not removed on hover 2024-07-27 14:46:52 +03:00
MihailRis 64ccf2a532 fix: thrid-person camera xray 2024-07-26 13:40:13 +03:00
MihailRis 41a22938d6 add 'entity.despawn' command 2024-07-17 07:35:02 +03:00
MihailRis 50050dbe40 add entity events: on_attacked, on_used 2024-07-16 14:04:05 +03:00
MihailRis a36ffaacd9 add entity events: on_aim_on, on_aim_off 2024-07-16 13:42:58 +03:00
MihailRis 4a0bc016ce refactor: extract method placeBlock and move some code from PlayerController to BlocksController 2024-07-15 15:41:25 +03:00
MihailRis 7c6d620560 add setting camera.inertia & add display settings menu page 2024-07-15 14:23:31 +03:00
MihailRis af1b32d91d remove camera latency 2024-07-15 14:06:49 +03:00
MihailRis c17f3fec54 add entities raycast 2024-07-14 10:50:06 +03:00
MihailRis 4aa76e35b7 add on_hud_render event 2024-07-12 09:17:53 +03:00
MihailRis 247acb3687 add cameras.look_at, player.set_camera, base:cinematic camera 2024-07-12 08:23:22 +03:00
MihailRis 7487c55e0c Merge branch 'main' into entities 2024-07-10 09:25:56 +03:00
MihailRis 4c8ae465c7 add 'grounded' support for 'pipe' rotation profile 2024-07-10 09:14:24 +03:00
MihailRis e0358fe2db add 'blocking' entity property 2024-07-10 04:56:02 +03:00
MihailRis 91230ecbeb update 'hitbox' property semantics 2024-07-10 02:34:53 +03:00
MihailRis d8c9fa1fe2 loading rig pose, textures, body settings 2024-07-09 21:19:29 +03:00
MihailRis 7e80642ec3 fix third person cameras updating 2024-07-09 04:57:03 +03:00
MihailRis f3201b7742 fix: player flight linearDamping, add verticalDamping (bool) 2024-07-08 23:53:25 +03:00
MihailRis 3cd0261f3b refactor and cleanup player controller 2024-07-08 19:43:13 +03:00
MihailRis 7dfda981a8 remove Player.hitbox (WIP) 2024-07-08 03:51:46 +03:00
MihailRis 77c9c5cdb7 add player entity (draft) 2024-07-07 22:19:15 +03:00
MihailRis 28ceffde9e Merge branch 'main' into entities 2024-07-02 15:14:10 +03:00
MihailRis 63ddfd83a3 fix camera fov reset after load 2024-07-02 15:13:48 +03:00
MihailRis ee9f1639e9 refactor Content 2024-06-25 22:37:53 +03:00
MihailRis eacbc1b9d0 add entity.test(...) function 2024-06-24 23:36:20 +03:00
MihailRis 5a01eca780 add entity models rigging draft 2024-06-24 20:57:19 +03:00
MihailRis 4b20487c58 add drop test 2024-06-24 15:39:40 +03:00