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

Previous Thread :: Next Thread 
EvanHolt is not online. EvanHolt
Joined: 06 Sep 2008
Total Posts: 1264
24 Feb 2017 09:21 PM
How would I go about rotating a part so that its ################# is equal to the vector Vector3.new(a,b,c)? (a, b, and c are arbitrary numbers)
Report Abuse
EvanHolt is not online. EvanHolt
Joined: 06 Sep 2008
Total Posts: 1264
24 Feb 2017 09:22 PM
That censored section is: CFrame [period] ########## [ George Orwell taught me math! 2 + 2 = 5 ]
Report Abuse
EvanHolt is not online. EvanHolt
Joined: 06 Sep 2008
Total Posts: 1264
24 Feb 2017 09:22 PM
And that other censored section is look Vector without the space.

[ George Orwell taught me math! 2 + 2 = 5 ]
Report Abuse
Casualist is not online. Casualist
Joined: 26 Jun 2014
Total Posts: 4443
24 Feb 2017 09:23 PM
Assuming the hashes are about setting a part's lookVector, then you have an under defined problem as infinitely many cframes can have the same lookVector
Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
24 Feb 2017 09:25 PM
I think he means he wants to specify three values and have the CFrame value adjusted?


Report Abuse
Casualist is not online. Casualist
Joined: 26 Jun 2014
Total Posts: 4443
24 Feb 2017 09:28 PM
This is the part where I repeat the same thing.


If we set the constraint that part's local x-axis should always be coplanar with the global x-z plane, then you can do this:

part.CFrame = CFrame.new(part.Position, part.Position+Vector3.new(a,b,c))
Report Abuse
EvanHolt is not online. EvanHolt
Joined: 06 Sep 2008
Total Posts: 1264
24 Feb 2017 09:35 PM
"part.CFrame = CFrame.new(part.Position, part.Position+Vector3.new(a,b,c))"
This does exactly what I needed to do, thanks! Sorry if my question was poorly worded.

[ George Orwell taught me math! 2 + 2 = 5 ]
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