Is there a way I can set an object's CFrame's Angles?
Something like this, but .Angles
is the part I am unsure about(CFrame.Angles isn't correct)
1 | part 1. CFrame.Angles = part 2. CFrame.Angles |
Sorry if this is a stupid question.
heh... :P
01 | . --'''''''''--. |
02 | . ' .---. ' . |
03 | / . -----------. \ |
04 | / . -----. \ |
05 | | .-. .-. | |
06 | | / \ / \ | |
07 | \ | .-. | .-. | / |
08 | '-._| | | | | | |_.-' |
09 | | '-' | '-' | |
10 | \___/ \___/ |
11 | _.-' / \ `-._ |
12 | . ' _.--| |--._ ' . |
13 | ' _...-| |-..._ ' |
14 | | | |
15 | '.___.' |
CFrame.Angles isn't part of a part's CFrame, but it's a part of the CFrame value itself. That sounds kinda complicated, so instead just keep the position and change the orientation, like so:
1 | part 1. CFrame = CFrame.New(part 1. CFrame.p, part 2. CFrame.lookVector) |