kingmatt2
|
  |
| Joined: 20 Aug 2011 |
| Total Posts: 6494 |
|
|
| 22 Jun 2013 10:03 PM |
Can someone explain to me what EACH number of this means, becuase I need to do this and I'm just guessing.
Spine.C0 = CFrame.new( 0, 1, 0,-0, -0, -1, 0, 1, 0, 1, 0, 0) Spine.C1 = CFrame.new(0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) |
|
|
| Report Abuse |
|
|
BIackHoIe
|
  |
| Joined: 23 Aug 2012 |
| Total Posts: 68 |
|
|
| 22 Jun 2013 10:05 PM |
THis particular CFrame constructor uses 12 number values, which can represent 4 Vector3 values if you think about it.
The first 3 represent the CFrame's position. The second 3 represent the x-direction values which correspond to the unit vectors of the 3 dimensions. The third 3 represent the y-direction values, the last 3 represent the z-direction values.
In conclusion, the first 3 mean position, the last 9 are just advanced for rotation. |
|
|
| Report Abuse |
|
|
kingmatt2
|
  |
| Joined: 20 Aug 2011 |
| Total Posts: 6494 |
|
| |
|
kingmatt2
|
  |
| Joined: 20 Aug 2011 |
| Total Posts: 6494 |
|
|
| 22 Jun 2013 10:18 PM |
How do I use the rotation? Every time I try it makes the part go WAK
--Normal-- Spine.C0 = CFrame.new(0, -1, 2,-0, -0, -1, 0, 1, 0, 1, 0, 0) Spine.C1 = CFrame.new(0, 0, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
--My Edit-- Spine.C0 = CFrame.new(0, -1, 2,-0, -1, -1, 0, 1, 0, 1, 0, 0) Spine.C1 = CFrame.new(0, 0, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) |
|
|
| Report Abuse |
|
|
BIackHoIe
|
  |
| Joined: 23 Aug 2012 |
| Total Posts: 68 |
|
|
| 23 Jun 2013 10:46 AM |
| The the problem is the fact that the unit vectors do not work with eachother. Think about it this way: you can't have a 3 dimensional entity with axes that are not perpendicular to each other. |
|
|
| Report Abuse |
|
|
|
| 23 Jun 2013 11:43 AM |
Position and rotation matrix. Read about it here:
http://wiki.roblox.com/index.php/CFrame |
|
|
| Report Abuse |
|
|