#Calculation Issues

1 messages · Page 1 of 1 (latest)

unkempt radishBOT
sour stump
#

that's

#

not how you calculate speed to begin with

#

horizontal speed I assume

#

what are they using the speed value for by the way? because often times it's better to use an approximate look up table with a predicate to check horizontal speed

sour stump
#

(ask your friend I mean)

dusty stone
dusty stone
sour stump
sour stump
#

cuz ain't no way it's a good idea to run all of that every tick

dusty stone
#

I guess that's fair

sour stump
#

considering it's calculated wrongly to begin with

dusty stone
#

a wall of predicates is better than math?

sour stump
#

yep

dusty stone
#

Huh

#

I'll tell her

sour stump
#

predicates are processed very swiftly

sour stump
#

in this case both are bad

dusty stone
#

Then what's good 😭

sour stump
#

ask her what is she tryna do so we could determine 🥲

dusty stone
#

She's from like ireland I'll be waiting all day for an answer 😭

#

What are the options?

#

math is bad, wall of predicates is good but too many is bad

sour stump
#

predicates as a look up table, if the number of them is too large we could divide them into some kind of tree to greatly reduce checks

sour stump
#

that'd cut them by log of 2

#

but again still wouldn't recommend every tick unless necessary

dusty stone
#

I mean how would you collect the players speed without checking that tick? Just running every few ticks instead?

#

I've never understood why running things tickly is bad when the other option is to run every 5 ticks instead that feels like the same thing to me

sour stump
#

ok so don't be mad but... || that depends on why she needs to do that to begin with 💀 ||

dusty stone
#

Lmao

#

fair

dusty stone
#

Alright I'll get back to you whenever she gets back to me

sour stump
#

is less than 1 tick

#

that's better

dusty stone
#

that's ture...

sour stump
#

doing operations so long like this is tiring

sour stump
# dusty stone that's ture...

and by the way, as I said this math here is completely wrong, you should square both X and Z first and take their root. And as you know we don't have a root in mc, so you gotta use an approximation formula, which is so expensive

dusty stone
#

In some cases players don't store their motion, but they always store position apparently

sour stump
#

over all it's not something you'd wanna do every tick

#

so we gotta compromise

dusty stone
#

Yeh ok I will share

unkempt radishBOT
unkempt radishBOT