What does CFrame.p Mean? Its in a wiki ray casting script
local ray = Ray.new(tool.Handle.CFrame.p, (mouse.Hit.p - tool.Handle.CFrame.p).unit*300)
What does CFrame.p Mean? Its in a wiki ray casting script
local ray = Ray.new(tool.Handle.CFrame.p, (mouse.Hit.p - tool.Handle.CFrame.p).unit*300)
Just a head's up, try searching the wiki first for Object members or properties.
As it says there, the p member of a CFrame object is a Vector3 that represents the X, Y, Z Position of the CFrame, without rotation.
Both mouse.Hit and tool.Handle.CFrame use the p member, because they are both CFrame objects.
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Put succinctly -- A CFrame's
pis the position of the CFrame, forming a Vector3. The position lacks the orientation (rotation) information that the CFrame has.