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 » Game Design
Home Search
 

Re: Welding and CFraming

Previous Thread :: Next Thread 
georgeba is not online. georgeba
Joined: 29 Oct 2011
Total Posts: 1092
01 Sep 2015 09:38 PM
Whenever I weld this to the characters head, the object is upside down...
w.C0 = CFrame.new(0, -.8, 0)
So then I added this...
w.C0 = CFrame.new(0, -.8, 0)*CFrame.Angles(180,0,0)
Yet it still doesn't work. I am not that good at CFraming.

(I only included welding and CFraming, everything else works)

Is there something really simple I'm missing?
Report Abuse
GhostSailor is not online. GhostSailor
Joined: 02 Jul 2010
Total Posts: 1913
01 Sep 2015 09:45 PM
CFrame is in radians, not degrees.
180 degrees = 3.14 radians, or math.pi. Use math.pi as your reference variable.

Lord of all things, breaded and unbreaded.
Report Abuse
georgeba is not online. georgeba
Joined: 29 Oct 2011
Total Posts: 1092
01 Sep 2015 09:47 PM
I'm a little bit confused,
Report Abuse
georgeba is not online. georgeba
Joined: 29 Oct 2011
Total Posts: 1092
01 Sep 2015 09:48 PM
is it possible to use degrees?
Report Abuse
GhostSailor is not online. GhostSailor
Joined: 02 Jul 2010
Total Posts: 1913
01 Sep 2015 09:50 PM
Not without doing the math.

180 = math.pi, so put in math.pi to rotate 180.

Lord of all things, breaded and unbreaded.
Report Abuse
georgeba is not online. georgeba
Joined: 29 Oct 2011
Total Posts: 1092
01 Sep 2015 09:52 PM
So like...

w.C0 = CFrame.new(0, -.8, 0)*CFrame.Angles(math.pi, 0,0)

I feel like I need to put the 180 somewhere
Report Abuse
georgeba is not online. georgeba
Joined: 29 Oct 2011
Total Posts: 1092
01 Sep 2015 09:57 PM
Bump
Report Abuse
DermonDarble is not online. DermonDarble
Joined: 04 Jun 2015
Total Posts: 2576
01 Sep 2015 10:59 PM
math.rad() converts degrees to radians
Report Abuse
georgeba is not online. georgeba
Joined: 29 Oct 2011
Total Posts: 1092
02 Sep 2015 09:32 PM
Is there a WIKI page on this?
Report Abuse
georgeba is not online. georgeba
Joined: 29 Oct 2011
Total Posts: 1092
02 Sep 2015 10:03 PM
Oh, I got it.. So like math.rad(180)?
Report Abuse
georgeba is not online. georgeba
Joined: 29 Oct 2011
Total Posts: 1092
02 Sep 2015 10:06 PM
Got it..
For anyone interested this is what I did

w.C0 = CFrame.new(0, -.8, 0)*CFrame.Angles(math.rad(180), math.rad(0), math.rad(0))
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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