Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

Donate!

pls donate


#1 2019-11-04 19:57:22

NoNK
Member
Joined: 2019-07-13
Posts: 544

What made 1x1 hooks possible?

1x1 hooks in EE.
No 1x1 hooks in EEU.

The public needs answers.

Online

#2 2019-11-04 19:58:48, last edited by TaskManager (2019-11-04 19:59:11)

TaskManager
Formerly maxi123
From: i really should update this
Joined: 2015-03-01
Posts: 8,423

Re: What made 1x1 hooks possible?

**** physics and **** auto align
EDIT: nevermind auto align is related to 1x1 hovers


i8SwC8p.png
signature by HG, profile picture by bluecloud, thank!!
previous signature by drstereos













like.php?tid=46047&pid=754703

Online

#3 2019-11-04 20:10:24, last edited by LukeM (2019-11-04 20:27:18)

LukeM
Dev Team
From: England
Joined: 2016-06-03
Posts: 2,902
Website

Re: What made 1x1 hooks possible?

tl;dr: it was an unintended consequence of allowing you to fall into one block gaps.

There's a problem with collision detection where if you have a gap with a width close enough to the width of an object, that object won't be able to fall into it. This is the reason why almost no games have a character with width exactly one block.

EE solved this with a bit of a hack. It only calculates collisions with the blocks in a 2x2 square around the position you'd end up after the end of a tick if you didn't collide with anything, which means that for a single frame you can actually go through the corner of a block as long as you do so in a single tick. Here's a diagram I made a while ago:
Ln9JZuL.png

EEU however takes a pretty different approach, it keeps track of the direction you're trying to go when you're sliding against a block, and when you slide off the edge of a block it will prioritise this direction before the other if for example you're at the corner of a block. This leads to the same effect when it comes to sliding against a wall or the floor, but doesn't introduce the bug that allows you to jump through the corner of a block.

Edit: Here's a diagram of what EEU does:
9s5MkPW.png
(you can imagine that it's checking every block for collisions, although it omits some that don't make any difference for efficiency reasons)

Offline

Wooted by: (6)

#4 2019-11-04 22:01:31

NoNK
Member
Joined: 2019-07-13
Posts: 544

Re: What made 1x1 hooks possible?

Neat.

Online

#5 2019-11-05 00:25:25

Tomahawk
Forum Mod
From: BiH/UK
Joined: 2015-02-18
Posts: 2,211

Re: What made 1x1 hooks possible?

Moved to Q&A.


One bot to rule them all, one bot to find them. One bot to bring them all... and with this cliché blind them.

Offline

Tomahawk1572909925767427

Board footer

Powered by FluxBB

[ Started around 1573684804.5054 - Generated in 0.023 seconds, 13 queries executed - Memory usage: 1.3 MiB (Peak: 1.4 MiB) ]