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: How do you find a the rotation of a part in Vector3

Previous Thread :: Next Thread 
Dondonini is not online. Dondonini
Joined: 21 Dec 2007
Total Posts: 734
02 Jan 2012 03:17 AM
I can't find how to.
Report Abuse
Robain is not online. Robain
Joined: 10 Oct 2008
Total Posts: 349
02 Jan 2012 04:20 AM
print(workspace.Part's name here.CFrame)

Duh..
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
02 Jan 2012 07:42 AM
I don't get it why some 07'ers only know some of Lua.
Report Abuse
Penguine236 is not online. Penguine236
Joined: 13 Apr 2011
Total Posts: 1303
02 Jan 2012 08:50 AM
@Robain

Really? Thats not in Vector3.
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
02 Jan 2012 08:51 AM
I think properties.
Report Abuse
Penguine236 is not online. Penguine236
Joined: 13 Apr 2011
Total Posts: 1303
02 Jan 2012 08:56 AM
I think hes trying to get just the rotation in Vector3. Thats not possible because the rotation is a 9 number matrix.
Report Abuse
Fl0x is not online. Fl0x
Joined: 06 Aug 2010
Total Posts: 5169
02 Jan 2012 09:18 AM
Part.CFrame.lookVector
Is a Vector3 which is the facing direction where a part looks to by his front side.
Part.CFrame:toEulerAnglesXYZ()
Returns it's rotation in a Vector3.
Report Abuse
Dondonini is not online. Dondonini
Joined: 21 Dec 2007
Total Posts: 734
02 Jan 2012 03:46 PM
@fl0x

Thanks!! :DD
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
02 Jan 2012 03:52 PM
Oh so you ment you want to know which way the part is facing?
Report Abuse
Merlin11188 is not online. Merlin11188
Joined: 20 Dec 2007
Total Posts: 4158
02 Jan 2012 04:00 PM
I thought you meant get rotation from a vector3. Yes, CFrame.lookVector gives you the unit vector of the direction.
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