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: Can someone explain to me what these numbers?

Previous Thread :: Next Thread 
kingmatt2 is not online. 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 is not online. 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 is not online. kingmatt2
Joined: 20 Aug 2011
Total Posts: 6494
22 Jun 2013 10:06 PM
Thanks.
Report Abuse
kingmatt2 is not online. 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 is not online. 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
crazyman32 is online. crazyman32
Joined: 13 Apr 2008
Total Posts: 18027
23 Jun 2013 11:43 AM
Position and rotation matrix. Read about it here:

http://wiki.roblox.com/index.php/CFrame
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