|
| 07 Feb 2017 06:20 PM |
I'm trying to solve for each value of the rotation matrix in a script. I looked up how to solve for each value of the rotation matrix, but rblox has the most crammed formula in the picture given, making it impossible to read the second and third lines of the calculations. Does anyone know how to calculate R10 R11 R12 R20 R21 R22? Thanks!
|
|
|
| Report Abuse |
|
|
|
| 07 Feb 2017 06:23 PM |
local x, y, z, R00, R01, R02, R10, R11, R12, R20, R21, R22 = CFrame:components()
|
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 07 Feb 2017 06:24 PM |
local cf = CFrame.new(0,0,0) local thing = {cf:components()}
for i,v in next, thing do print(i,v) end
|
|
|
| Report Abuse |
|
|
|
| 07 Feb 2017 06:25 PM |
Not exactly what I was going for... this is an example of R10 R01 and R02
local R00 = math.cos(Y) * math.cos(Z) local R01 = -1*math.sin(Z) * math.cos(Y) local R02 = math.sin(Y)
|
|
|
| Report Abuse |
|
|
|
| 07 Feb 2017 06:26 PM |
http://wiki.roblox.com/index.php?title=CFrame#components
|
|
|
| Report Abuse |
|
|
|
| 07 Feb 2017 06:30 PM |
@Unsubtleties Again, not what I'm looking for.
|
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 07 Feb 2017 06:33 PM |
http://wiki.roblox.com/index.php?title=Euler_angles#Extracting_Euler_Angles
|
|
|
| Report Abuse |
|
|
| |
|