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: Rotation

Previous Thread :: Next Thread 
Eversome is not online. Eversome
Joined: 07 Oct 2012
Total Posts: 32
25 Jul 2013 10:42 AM
Hey. Anyone know of a way to rotate relative to world coordinates rather than object coordinates?
Report Abuse
Eversome is not online. Eversome
Joined: 07 Oct 2012
Total Posts: 32
25 Jul 2013 11:16 AM
What I mean is, for example, rotating a part to the left or right, forward or backward, despite its current rotation.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
25 Jul 2013 11:17 AM
CFrame.Angles?
Report Abuse
Eversome is not online. Eversome
Joined: 07 Oct 2012
Total Posts: 32
25 Jul 2013 02:45 PM
No, that rotates relative to the part's axis. I want to rotate on the actual x/y/z axis, not the ones on the part.
Report Abuse
Eversome is not online. Eversome
Joined: 07 Oct 2012
Total Posts: 32
26 Jul 2013 03:33 AM
Is what I am asking unclear, or does no one know how to do it?
Report Abuse
IamAwesome777 is not online. IamAwesome777
Joined: 18 Jul 2011
Total Posts: 2640
26 Jul 2013 03:35 AM
I understand, but I am not sure if there is an answer.

It always bugs me when you flip a brick upside down and all the axes get's reversed or something.
Report Abuse
noliCAIKS is not online. noliCAIKS
Joined: 08 Mar 2010
Total Posts: 917
26 Jul 2013 05:44 AM
You could apply the cframe on the rotation instead of the rotation on the cframe?
CFrame.Angles(x, y, z) * some_cframe
That should work.
Report Abuse
stroudie is not online. stroudie
Joined: 28 Nov 2008
Total Posts: 2556
26 Jul 2013 07:31 AM
Try using

CFrame:toWorldSpace(CFrame cf)

http://wiki.roblox.com/index.php/Cframe
Report Abuse
Eversome is not online. Eversome
Joined: 07 Oct 2012
Total Posts: 32
26 Jul 2013 12:40 PM
Thanks, noliCAIKS, it worked fine.
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