#Average Direction & Magnitude of an object, Help!
1 messages · Page 1 of 1 (latest)
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
nah just the current object in hand like get equipped objects of the dominant hand
are you trying to get velocity of an object?
I Have the vel just not the a.d and a.m
i just don't really understand what you mean by "average direction of object"
it's alright
average needs more than 1 vector
are you comparing vectors across multipke frames, or more within the same frame
multiple
are you trying to get average direction object is moving in some time frame?
yes
so across frames
either way would work
well ye, i got work. That makes it a lil more clear. Im sure @winged tinsel can take it now
Alr thx
oh boy, thats gonna be fun
but when u have average direction, just vector get magnitude it
mb ðŸ˜
alr got it
for average magnitude
however your not adding elements, your adding all vectors & dividing the list count put into xyz of a vector 3 create
so basically you need to save the velocity of the object a lot of times per second
then you save allat in a list
after that you get the average of the vectors like what i said earlier
more times you save = more presicion but more lag and possible problems with list limits
i meant save all xs in 1 variable, all ys in another and all zs in third
also unrelated bc u dont need it but you get elements added together in a vector, u just dot by (1,1,1)
is there way too reduce the lag if there were multiple people in the room?
yeah all need is 1 vector variable & for each bc i dont think list sum works for vectors
"if player is authority" ig
alr
or just get the player who has the object and use "if player is valid and local"
ill try both
you have to play with values to get the balance between lag and presicion
so it can't be static?
that changes depending on scope
room = room authority
object board = objects authority
and use object get authority as player input
just try different values of how often you save and when you think its good enough you just keep it at that value
alr mb for the extra explanation
nah, it's alr
got it
#1321098169693507604
just gonna leave this here
alr