I don't need any links to the wiki about CFrames. I have a model and I need to rotate it towards a CFrame. How would I do that?
CFrames are very confusing to me. I understand the concept of them, and that they make up the rotation matrix or whatnot.
I don't need any links to the wiki about CFrames. I have a model and I need to rotate it towards a CFrame. How would I do that?
CFrames are very confusing to me. I understand the concept of them, and that they make up the rotation matrix or whatnot.
The easiest way to do this is to give the model a primary part (preferably one right at the center) and use Model.SetPrimaryPartCFrame method. This will move/rotate all the parts in the model with it. Example:
PointToFaceTowards = Vector3.new(100, 200, 300)
Model:SetPrimaryPartCFrame(CFrame.new(Model.PrimaryPart.Position, PointToFaceTowards))
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
This should help, thanks.