doneyes
|
  |
| Joined: 21 Mar 2008 |
| Total Posts: 3466 |
|
|
| 19 Dec 2013 12:34 PM |
I was looking at a script and can't figure out what all of the extra stuff is.
Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 19 Dec 2013 12:41 PM |
A rotation matrix.
CFrame.new(1.5,0.5,0) is the normal
The rest of the numbers form a matrix that tells how the block should rotate.
|
|
|
| Report Abuse |
|
|
doneyes
|
  |
| Joined: 21 Mar 2008 |
| Total Posts: 3466 |
|
|
| 19 Dec 2013 12:49 PM |
| So like a set rotation amount so that it can't 'over rotate'? |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 19 Dec 2013 12:50 PM |
No. Its kind of like CFrame.new(1.5,0.5,0)*CFrame.Angles(x,y,z)
Except that CFrame.Angles is the condensed form of the above. |
|
|
| Report Abuse |
|
|
duckwit
|
  |
| Joined: 08 Aug 2008 |
| Total Posts: 1310 |
|
|
| 19 Dec 2013 01:07 PM |
| The first 3 numbers are the x, y, and z components of a vector describing the position of the CFrame. The subsequent 9 numbers are each an entry in a 3 x 3 Rotation Matrix. A Matrix is a mathematical object commonly used in computer graphics because it can be easily transformed (moved, scaled, and rotated), it is most commonly represented graphically as a table of values. |
|
|
| Report Abuse |
|
|
doneyes
|
  |
| Joined: 21 Mar 2008 |
| Total Posts: 3466 |
|
|
| 19 Dec 2013 01:14 PM |
| I remember briefly going over matrixes last year in alg. II. |
|
|
| Report Abuse |
|
|
|
| 19 Dec 2013 01:17 PM |
| Think of matrices, but on steroids. Visit the wikipedia page on it, and be prepared to have your mind blown. |
|
|
| Report Abuse |
|
|