#i think this is math
1 messages · Page 1 of 1 (latest)
Ugh, been a bit since I’ve done this. Are you referring to how you can get the line to actually connect the 2 (e.g. with a part), or does the line already exist (with e.g. a raycast)?
im trying to make a type of line
then
i want the rotation of the line from the origin
as if the origin was rotated to the target
anyways i gtg
be back in a few hours
Alternative, subtract the 2 angles from each other
lol ig that works, sounds janky but kinda smart
Why is it janky? You change the angles “origin” over from world space to object space basically
I've never seen that in the programming world
cframe.lookat depending on exactly what you're trying to do
yeah if you only have the positions
cframe.lookalong if you only have a starting position and direction, but usually you'll have 2 positions ;p
Somehow he has the part already rotated but needs the axis
I mean, it would also return the correct angle, yet I wonder how he got the original angle in the first case without… well, having said angle
oh wait I know why subtracting is bad, its cause it tells you how much it is rotated relative to the other rather than the actual heading in the world
Hi I'm back for a lil
I just read the thread
Just wanna clarify some questions
I don't need to make the line, just an example, I'm trying to go from 2 positions that is already known, and i wanna get the direction of it, like how if i look at a window that's the way I'm facing, i wanna see if i can get that info from just 2 positions
Also
When I'm back
Again
im back on pc