DeGames
|
  |
| Joined: 08 Sep 2012 |
| Total Posts: 1028 |
|
|
| 24 Dec 2015 06:44 PM |
local player = game.Players.LocalPlayer local mouse = player:GetMouse()
mouse.Button1Down:connect(function() local wall = game.ServerStorage.Wall:Clone() wall.Parent = game.workspace wall.PrimaryPart = wall.PrimaryPart wall:SetPrimaryPartCFrame(mouse.Hit.p) end)
Output: Unable to cast Vector3 to CoordinateFrame |
|
|
| Report Abuse |
|
|
|
| 24 Dec 2015 06:50 PM |
Nope.
CoordinateFrame is the long way to say CFrame. So it's a CFrame. |
|
|
| Report Abuse |
|
|
nox7
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 27467 |
|
|
| 24 Dec 2015 06:52 PM |
mouse.Hit
is the CoordinateFrame |
|
|
| Report Abuse |
|
|
DeGames
|
  |
| Joined: 08 Sep 2012 |
| Total Posts: 1028 |
|
|
| 24 Dec 2015 07:02 PM |
| Ohh oh ok so CoordinateFrame includes the angles in a matrix and the CFrame is just the position. Alright, thanks |
|
|
| Report Abuse |
|
|
rvox
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 5380 |
|
|
| 24 Dec 2015 07:05 PM |
| no they are the same thing |
|
|
| Report Abuse |
|
|
DeGames
|
  |
| Joined: 08 Sep 2012 |
| Total Posts: 1028 |
|
|
| 24 Dec 2015 07:12 PM |
| Oh so CoordinateFrames and CFrames are the same. Vector3's are different because they are only a 1x3 matrix? |
|
|
| Report Abuse |
|
|
drgn42
|
  |
| Joined: 11 Feb 2010 |
| Total Posts: 3231 |
|
|
| 24 Dec 2015 07:15 PM |
CFrame = CoordinateFrame CFrames are (X,Y,Z) as well as angles (X,Y,Z). Vector3 is just an (X,Y,Z) |
|
|
| Report Abuse |
|
|
|
| 24 Dec 2015 07:35 PM |
| CFrame is the shorter term for CoordinateFrame. Instead of saying "Coordinate", they use a "C" to represent it instead. Common mistake. |
|
|
| Report Abuse |
|
|
rvox
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 5380 |
|
|
| 24 Dec 2015 07:38 PM |
| no, they have x,y,z and the 9 rotation matrix values |
|
|
| Report Abuse |
|
|
DeGames
|
  |
| Joined: 08 Sep 2012 |
| Total Posts: 1028 |
|
|
| 24 Dec 2015 07:40 PM |
| rvox, so Vecotr3's do have the angle matrix? |
|
|
| Report Abuse |
|
|
rvox
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 5380 |
|
| |
|