Time |
Nick |
Message |
00:03 |
|
Artea joined #minetest |
00:17 |
|
SFENCE joined #minetest |
00:43 |
|
SFENCE joined #minetest |
01:00 |
|
SFENCE joined #minetest |
01:02 |
|
que123 left #minetest |
01:23 |
|
SFENCE joined #minetest |
01:27 |
|
est31 joined #minetest |
01:40 |
|
SFENCE joined #minetest |
01:47 |
|
v-rob joined #minetest |
01:53 |
|
Guest22 joined #minetest |
01:59 |
|
SFENCE joined #minetest |
02:03 |
|
Guest22 left #minetest |
02:17 |
|
illwieckz joined #minetest |
02:19 |
|
SFENCE joined #minetest |
02:44 |
|
SFENCE joined #minetest |
02:56 |
|
untilted joined #minetest |
03:00 |
|
SFENCE_arch joined #minetest |
03:01 |
|
amfl2 joined #minetest |
03:01 |
|
SFENCE joined #minetest |
03:05 |
|
Guest14 joined #minetest |
03:14 |
|
SFENCE joined #minetest |
03:20 |
|
SFENCE joined #minetest |
03:29 |
|
v-rob joined #minetest |
04:00 |
|
MTDiscord joined #minetest |
04:32 |
|
SFENCE joined #minetest |
04:32 |
untilted |
How do I match the player gravity with an entity gravity |
04:32 |
untilted |
I'm using set_acceleration |
04:33 |
MTDiscord |
<warr1024> smells like an xy problem, seeing how player movement happens client side while entity movement is authoritative server-side and prediction may be off |
04:34 |
MTDiscord |
<warr1024> if you want them to fall at the exact same rate together, you might have to do some kind of attachment |
04:34 |
untilted |
Oh I'm not doing a vehicle/boat, it's just a simple walking mob |
04:34 |
MTDiscord |
<warr1024> otherwise they'll likely drift out of sync just from step jank. |
04:35 |
MTDiscord |
<warr1024> I think player's gravity is like y=-10 or y=-9.81 or something earth-like |
04:35 |
untilted |
I'm doing -10 but it still feels very floaty |
04:35 |
untilted |
I think I'm just misunderstanding how the set_velocity and set_acceleration vectors should work together |
04:37 |
MTDiscord |
<warr1024> The way I understand it, you just set acceleration for gravity, and you don't have to set velocity |
04:37 |
MTDiscord |
<warr1024> acceleration modifies velocity (assuming the entity isn't already standing on a surface) |
04:37 |
MTDiscord |
<warr1024> like, continuously |
04:38 |
MTDiscord |
<warr1024> you might set velocity if you wanted it to jump, and then let the acceleration handle the ballistic arc after that |
04:39 |
untilted |
that sounds very nice |
04:40 |
untilted |
i did a parabolic knockback with just set_velocity vectors lol |
04:44 |
untilted |
Are player physics written in lua or in cpp? |
04:44 |
untilted |
I'm comparing the get_velocity vectors of my player and the entities |
04:44 |
MTDiscord |
<warr1024> All the entity physics I'm pretty sure is C++ engine-side, and involves a bunch of like network prediction and such so it wouldn't be too straightforward to do in Lua that only runs server-side. |
04:45 |
MTDiscord |
<warr1024> When you get the player's velocity, it'll be delayed, and I think it might even be inferred server-side based on player position updates, i.e. you don't actually know the real instantaneous velocity that the client knows |
04:45 |
MTDiscord |
<warr1024> this is why stuff like player falling damage calcs are done client-side. |
04:47 |
untilted |
I see, that's not a big problem because I can still tell from this print that the player reaches about -10y velocity just before landing from a 4 block height |
04:49 |
|
SFENCE joined #minetest |
05:13 |
|
SFENCE joined #minetest |
05:19 |
untilted |
Ok I'm obviously doing something wrong using set_velocity to move my mobs |
05:19 |
untilted |
Are we supposed to just use set_acceleration now? |
05:20 |
untilted |
along with add_velocity? |
05:25 |
untilted |
i feel like using set_velocity is the wrong idea, im going to need documentation |
05:27 |
|
SFENCE joined #minetest |
05:57 |
|
gregon joined #minetest |
06:05 |
|
SFENCE joined #minetest |
06:14 |
untilted |
Yeah I can't use set_velocity on the same on_set callback and then expect set_acceleration to do its thing when im resetting the end velocity every call |
06:14 |
untilted |
I'm going to have fun tomorrow |
06:26 |
|
jaca122 joined #minetest |
06:35 |
|
YuGiOhJCJ joined #minetest |
06:41 |
|
gregon joined #minetest |
06:41 |
|
SFENCE joined #minetest |
07:00 |
|
ln5 joined #minetest |
07:01 |
|
SFENCE joined #minetest |
07:19 |
|
SFENCE joined #minetest |
07:35 |
|
fluxionary joined #minetest |
07:36 |
|
TomTom joined #minetest |
07:39 |
|
ireallyhateirc joined #minetest |
08:05 |
|
cranez joined #minetest |
08:33 |
|
MacroFaxSax joined #minetest |
09:23 |
|
amfl2 joined #minetest |
09:53 |
|
vampirefrog joined #minetest |
10:43 |
|
AwesomeAdam54321 joined #minetest |
11:47 |
|
sys4 joined #minetest |
11:59 |
|
mrkubax10 joined #minetest |
12:59 |
|
SFENCE_arch joined #minetest |
13:30 |
|
gregon joined #minetest |
13:37 |
|
SFENCE joined #minetest |
13:54 |
|
gregon joined #minetest |
14:07 |
|
ireallyhateirc joined #minetest |
14:09 |
|
MacroFaxSax joined #minetest |
14:15 |
|
illwieckz joined #minetest |
14:16 |
|
Trifton joined #minetest |
14:20 |
|
gregon joined #minetest |
15:06 |
|
untilted joined #minetest |
15:22 |
|
SFENCE joined #minetest |
15:29 |
|
boingman joined #minetest |
15:40 |
|
SFENCE joined #minetest |
16:16 |
|
loggingbot_ joined #minetest |
16:16 |
|
Topic for #minetest is now The official Minetest channel | Latest version: 5.8.0 (2023-12-04) | General, player and modding discussion is on-topic. If in doubt, post here | Responses may take a while, be patient | Rules: https://wiki.minetest.net/IRC#Rules | Development: #minetest-dev | Server list: https://minetest.net/servers | IRC logs: https://irc.minetest.net/minetest |
16:27 |
|
SFENCE joined #minetest |
16:39 |
|
SFENCE joined #minetest |
16:50 |
|
gregon joined #minetest |
16:53 |
|
jaca122 joined #minetest |
17:01 |
|
boingman joined #minetest |
17:01 |
|
nopjmp joined #minetest |
17:01 |
|
sparky4 joined #minetest |
17:07 |
|
SFENCE joined #minetest |
17:15 |
|
SFENCE joined #minetest |
17:33 |
|
Talkless joined #minetest |
17:49 |
|
Sokomine joined #minetest |
18:00 |
|
___nick___ joined #minetest |
18:01 |
|
boingman joined #minetest |
18:05 |
|
liceDibrarian joined #minetest |
18:32 |
|
___nick___ joined #minetest |
18:35 |
|
___nick___ joined #minetest |
19:18 |
|
kamdard joined #minetest |
19:45 |
|
SFENCE joined #minetest |
19:48 |
|
v-rob joined #minetest |
20:06 |
|
silverwolf73828 joined #minetest |
20:20 |
|
SFENCE joined #minetest |
20:25 |
|
sparky4 joined #minetest |
20:32 |
|
liceDibrarian joined #minetest |
20:54 |
|
SFENCE joined #minetest |
20:56 |
|
kamdard joined #minetest |
21:05 |
|
TheSilentLink joined #minetest |
21:12 |
|
SFENCE joined #minetest |
21:19 |
|
v-rob joined #minetest |
21:21 |
|
vampirefrog joined #minetest |
21:26 |
|
SFENCE joined #minetest |
21:27 |
|
hlqkj left #minetest |
21:44 |
|
SFENCE joined #minetest |
22:14 |
|
est31 joined #minetest |
22:25 |
|
v-rob joined #minetest |
22:33 |
|
panwolfram joined #minetest |
22:36 |
|
boingman joined #minetest |
23:02 |
|
SFENCE joined #minetest |
23:05 |
|
Eragon joined #minetest |
23:16 |
|
YuGiOhJCJ joined #minetest |
23:27 |
|
SFENCE joined #minetest |