#How would I go about this?
1 messages · Page 1 of 1 (latest)
by passing in the set direction you wanted 
I'm very new idk how to do that i just tried this because it came to mind. could you explain further?
you said you have a set direction? just pass that in instead of using (hrp-hitbox).unit
m1 go brrrr
how do i quantify set direction? as in what format is it like (x, y, z)?
or do i have to use a variable for it?
(hrp-hitbox).unit is a direction
cframe.lookvector is also a direction
and so is vector.yaxis
i'm not going to give you specific solutions, not here to write it for you. i'm just telling you how you'd go about it.
pass in whatever direction you want like its a function parameter like function hitbox(direction,etc...)
im kinda dumb with directions, math, etc
a position is technically also a direction with magnitude in it, it's the direction from 0,0,0 and how far it is
wait it is?
yes
does it literally just have no velocity and is just a direction?
(hrp-hitbox) is also a direction with a magnitude in it, that's why you use .unit to make it a pure direction vector
velocity is usually done with a direction vector, plus magnitude which represents the force
im gonna be honest i had the flu in my physics unit