#Average Direction & Magnitude of an object, Help!

1 messages · Page 1 of 1 (latest)

ebon niche
#

Average Direction & Magnitude of an object, Help!

winged tinsel
#

you mean average direction of list of vectors or something else?

#

if yes you just add all of the Xs,Ys and Zs into 3 variables and divide them by the amount of vectors
for the magnitude you just add them all up and divide by ammount

ebon niche
winged tinsel
ebon niche
winged tinsel
#

i just don't really understand what you mean by "average direction of object"

grim portal
winged tinsel
#

are you trying to get average direction object is moving in some time frame?

grim portal
#

so across frames

ebon niche
#

either way would work

grim portal
#

well ye, i got work. That makes it a lil more clear. Im sure @winged tinsel can take it now

ebon niche
#

Alr thx

winged tinsel
#

oh boy, thats gonna be fun

grim portal
ebon niche
grim portal
grim portal
winged tinsel
winged tinsel
grim portal
#

also unrelated bc u dont need it but you get elements added together in a vector, u just dot by (1,1,1)

ebon niche
grim portal
winged tinsel
ebon niche
winged tinsel
#

or just get the player who has the object and use "if player is valid and local"

winged tinsel
#

you have to play with values to get the balance between lag and presicion

grim portal
grim portal
winged tinsel
ebon niche
winged tinsel
ebon niche
winged tinsel
#

there are much dumber people here ngl

#

(not to offense anyone)

ebon niche
#

nah you good chief 😭

#

ill give it a try in a bit with all that in mind

winged tinsel
ebon niche
#

alr