CanterCrow
(CanterCrow)
#1
Hi,
I am trying to figure out how to get the middle between two parts and a few studs up to make an arc.
Below is what I have for finding the middle but can’t figure out how to get the midpoint a few studs up in the Y
midPoint.CFrame = Point1.CFrame:Lerp(Point2.CFrame, 0.5)
1 Like
Prototrode
(Vernumerator)
#2
How much higher do you want it to be?
This is for global offset:
local offset = Vector3.new(0, 5, 0) --5 studs up
midPoint.CFrame = Point1.CFrame:Lerp(Point2.CFrame, .5) + offset
And this is for relative offset:
local offset = CFrame.new(0, 5, 0) --5 studs up
midPoint.CFrame = Point1.CFrame:Lerp(Point2.CFrame, .5) * offset
1 Like