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: What does bodygyro do?

Previous Thread :: Next Thread 
Paramedic4 is not online. Paramedic4
Joined: 23 Jan 2011
Total Posts: 5934
25 Apr 2014 11:32 PM
I was just wondering what does bodygyro do and how can I script with it?
Thanks.
Report Abuse
KiwiTronik is not online. KiwiTronik
Joined: 18 Feb 2010
Total Posts: 3221
25 Apr 2014 11:37 PM
I wanna know 2 :D

~I'm an Angry Llama~
Report Abuse
IAmTheRolo is online. IAmTheRolo
Joined: 12 Nov 2013
Total Posts: 859
25 Apr 2014 11:52 PM
Pretty much makes a brick constantly point/face towards a fixed position.
Report Abuse
KiwiTronik is not online. KiwiTronik
Joined: 18 Feb 2010
Total Posts: 3221
25 Apr 2014 11:54 PM
Cant you just use CFrame for that though?

~I'm an Angry Llama~
Report Abuse
JoshuaKempfert is not online. JoshuaKempfert
Joined: 16 Feb 2013
Total Posts: 2407
25 Apr 2014 11:55 PM
It rotates an object to a specific cframe angle.
Report Abuse
Paramedic4 is not online. Paramedic4
Joined: 23 Jan 2011
Total Posts: 5934
26 Apr 2014 07:06 PM
And then combined with BodyForce, you can make something like a rocket rotate?
Report Abuse
xXxMoNkEyMaNxXx is not online. xXxMoNkEyMaNxXx
Joined: 03 Oct 2008
Total Posts: 3120
26 Apr 2014 07:09 PM
I've had problems with BodyGyros... BodyAngularVelocity is much more elegant.
Report Abuse
Paramedic4 is not online. Paramedic4
Joined: 23 Jan 2011
Total Posts: 5934
26 Apr 2014 08:07 PM
So then can I combine the usage of BodyForce and BodyAngularVelocity to make a rocket for example rotate while flying?
Report Abuse
xXxMoNkEyMaNxXx is not online. xXxMoNkEyMaNxXx
Joined: 03 Oct 2008
Total Posts: 3120
26 Apr 2014 08:12 PM
Yes, you could. Although they're more elegant, BodyAngularVelocity requires a good understanding of torque and axis angle, so you probably just want to stick with the BodyGyro.
Report Abuse
Paramedic4 is not online. Paramedic4
Joined: 23 Jan 2011
Total Posts: 5934
26 Apr 2014 09:11 PM
Ok, thanks! Also for scripting and changing the forces, it's:
b = BodyGyro/BodyForce
b.force = Vector3.new(0,100000,0) ?
Report Abuse
xXxMoNkEyMaNxXx is not online. xXxMoNkEyMaNxXx
Joined: 03 Oct 2008
Total Posts: 3120
26 Apr 2014 09:12 PM
For the BodyGyro it's .cframe
Report Abuse
Paramedic4 is not online. Paramedic4
Joined: 23 Jan 2011
Total Posts: 5934
26 Apr 2014 09:17 PM
Oh really? :o
But why is it CFrame for BodyGyro???
Report Abuse
xXxMoNkEyMaNxXx is not online. xXxMoNkEyMaNxXx
Joined: 03 Oct 2008
Total Posts: 3120
26 Apr 2014 09:21 PM
BodyGyro is pursuing an orientation rather than simply applying a constant force like a BodyForce.
Report Abuse
Paramedic4 is not online. Paramedic4
Joined: 23 Jan 2011
Total Posts: 5934
26 Apr 2014 09:38 PM
Ok thanks, and also because while the part seems to turn around in various directions, can I use something like BodyPosition to keep it in place and then can I use BodyGyro to rotate while flying?
Report Abuse
xXxMoNkEyMaNxXx is not online. xXxMoNkEyMaNxXx
Joined: 03 Oct 2008
Total Posts: 3120
26 Apr 2014 09:41 PM
You don't need to ask me, try it out for yourself!
Report Abuse
Paramedic4 is not online. Paramedic4
Joined: 23 Jan 2011
Total Posts: 5934
27 Apr 2014 04:25 AM
Ok, well I got that part tested out, just another question:
How can I script to change the angle of a part with BodyGyro???
Report Abuse
gijsbel11 is not online. gijsbel11
Joined: 07 Feb 2009
Total Posts: 4223
27 Apr 2014 04:33 AM
BodyGyro = Instance.new("BodyGyro",somepart)
BodyGyro.CFrame = BodyGyro.CFrame*CFrame.Angles(jaw,pitch,roll)
Report Abuse
FlamesOfHatred is not online. FlamesOfHatred
Joined: 24 Apr 2014
Total Posts: 90
27 Apr 2014 06:52 AM
omg ty
Report Abuse
Paramedic4 is not online. Paramedic4
Joined: 23 Jan 2011
Total Posts: 5934
27 Apr 2014 05:01 PM
Same here! Thank you so much!
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