Forgive me for the basic question as I've never dealt with moving models in this fashion before.
So, I'm working on a teleport system and I wanted to use CFrame instead of Vector3 to move the players and made it so my teleports use SetPrimaryPartCFrame instead of MoveTo.
Now I know MoveTo reacts to obstructions such as Terrain, other players, etc when moving models and changes the Y axis of the Vector3 accordingly, but I was wondering if SetPrimaryPartCFrame does the same thing, but with CFrames.
ROBLOX Wiki makes no mention of this functionality on the SetPrimaryPartCFrame page but it does say that you should use SetPrimaryPartCFrame when dealing with rotations on the MoveTo method page of a model, so I'd assume it does take obstructions into account.
Any help is appreciated, thanks!
The method SetPrimaryPartCFrame
does not take obstructions into account.
What it does is directly sets the CFrame of the PrimaryPart
and then moves the rest of the parts in the model so that they are in the same location relative to the PrimaryPart, not taking into account anything that may be in the way of the model.