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: CFrame components notation:

Previous Thread :: Next Thread 
amanda is not online. amanda
Joined: 21 Nov 2006
Total Posts: 5925
20 Aug 2016 05:49 AM
local _, _, _, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components();

I've seen that a lot. I don't understand the naming convention.

matrix version:
m00 m01 m02
m10 m11 m12
m20 m21 m22

Why does it add 10 when going down rows?

Anyone know?
Report Abuse
FrozenSmite is not online. FrozenSmite
Joined: 17 Jul 2013
Total Posts: 2242
20 Aug 2016 05:53 AM
Prob cuz mxy where x is row # and y is column #
Report Abuse
amanda is not online. amanda
Joined: 21 Nov 2006
Total Posts: 5925
20 Aug 2016 06:00 AM
Thank you so much, that makes infinite sense.

creating variables and naming them after location in a table.

0 1 2
0 a b c
1 d e f
2 g h i

a = m00
h = m21

The naming convention makes it easier because you don't have to worry about remembering ambiguous or complicated variable names, they state their position in relation to each other.

Think I got it.
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