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 » Scripting Helpers
Home Search
 

Re: What are all the extra numbers?

Previous Thread :: Next Thread 
doneyes is online. 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 is not online. 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 is online. 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 is not online. 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 is not online. 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 is online. 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
ArbiterOfDeath is not online. ArbiterOfDeath
Joined: 20 Jun 2011
Total Posts: 1458
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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