Cffex
(cffex)
#1
Basically this:
I tried this but when I use moveto with idealDistance on my humanoid, the character just passes through.
local idealN = 3
local idealDistance = ncPrimaryPart.CFrame * CFrame.lookAt(ncPrimaryPart.Position, primaryPart.Position).LookVector * idealN
1 Like
astraIboy
(The Batman)
#2
So your trying too find 3 studs in front of object 1?
I’m pretty sure that would be
local obj = obj.Position
local vec3 = obj.Position + obj.CFrame.LookVector * 3
Cffex
(cffex)
#3
I think you just calculated the vec3 in front of the obj. I need it to be in my direction.
astraIboy
(The Batman)
#4
So the vector3 thats 3 studs in front of the other object relative to you?
1 Like
astraIboy
(The Batman)
#5
What exactly are you trying to make with this, you could potentially try another solution
Cffex
(cffex)
#6
Sorry for the late reply, yes, you are correct.
Cffex
(cffex)
#7
No, this is exactly what I’m looking for.
Cffex
(cffex)
#8
local idealN = 3
local idealDistance = ncPrimaryPart.CFrame + CFrame.lookAt(ncPrimaryPart.Position, primaryPart.Position).LookVector * idealN
This is the solution, I figured it out.
1 Like
system
(system)
Closed
#9
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.