How to work out angles

How can I work out angles based on 3 parts.

90 degrees 90 degrees

135 degrees or 45 degrees

Can you explain more? Like what are you trying to do? invers kinematics?

no its for a smooth turn that uses arbitrary angles, im trying to use this code but I need the angle point for it

task.wait(3)
local Part0 = workspace.Part0
local Part1 = workspace.Part1
local Part2 = workspace.Part2
local PartToMove = workspace.PartToMove

local Radius = 2.5

while true do
	for Degrees = 1, ANGLE do
		local Radians = math.rad(Degrees)
		local X = Radius * math.cos(Radians)
		local Z = Radius * math.sin(Radians)
		
		local Radians1 = math.rad(Degrees + 0.1)
		local X1 = Radius * math.cos(Radians)
		local Z1 = Radius * math.sin(Radians)
		
		PartToMove.Position = Vector3.new(X, 0, Z) + Vector3.new(10, 10, 10)
		task.wait()
	end
end

I found this video online, Example: Using Vectors to Find the Angles of a Triangle

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.