generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Rotation Matrix

Previous Thread :: Next Thread 
inception101 is not online. inception101
Joined: 19 Dec 2010
Total Posts: 738
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
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
07 Feb 2017 06:23 PM
local x, y, z, R00, R01, R02, R10, R11, R12, R20, R21, R22 = CFrame:components()


Report Abuse
TimeTicks is not online. 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
inception101 is not online. inception101
Joined: 19 Dec 2010
Total Posts: 738
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
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
07 Feb 2017 06:26 PM
http://wiki.roblox.com/index.php?title=CFrame#components


Report Abuse
inception101 is not online. inception101
Joined: 19 Dec 2010
Total Posts: 738
07 Feb 2017 06:30 PM
@Unsubtleties
Again, not what I'm looking for.


Report Abuse
TimeTicks is not online. 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
inception101 is not online. inception101
Joined: 19 Dec 2010
Total Posts: 738
07 Feb 2017 06:35 PM
Thanks TimeTicks!


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image