|
| 25 Apr 2014 11:32 PM |
I was just wondering what does bodygyro do and how can I script with it? Thanks. |
|
|
| Report Abuse |
|
|
|
| 25 Apr 2014 11:37 PM |
I wanna know 2 :D
~I'm an Angry Llama~ |
|
|
| Report Abuse |
|
|
|
| 25 Apr 2014 11:52 PM |
| Pretty much makes a brick constantly point/face towards a fixed position. |
|
|
| Report Abuse |
|
|
|
| 25 Apr 2014 11:54 PM |
Cant you just use CFrame for that though?
~I'm an Angry Llama~ |
|
|
| Report Abuse |
|
|
|
| 25 Apr 2014 11:55 PM |
| It rotates an object to a specific cframe angle. |
|
|
| Report Abuse |
|
|
|
| 26 Apr 2014 07:06 PM |
| And then combined with BodyForce, you can make something like a rocket rotate? |
|
|
| Report Abuse |
|
|
|
| 26 Apr 2014 07:09 PM |
| I've had problems with BodyGyros... BodyAngularVelocity is much more elegant. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 26 Apr 2014 09:12 PM |
| For the BodyGyro it's .cframe |
|
|
| Report Abuse |
|
|
|
| 26 Apr 2014 09:17 PM |
Oh really? :o But why is it CFrame for BodyGyro??? |
|
|
| Report Abuse |
|
|
|
| 26 Apr 2014 09:21 PM |
| BodyGyro is pursuing an orientation rather than simply applying a constant force like a BodyForce. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 26 Apr 2014 09:41 PM |
| You don't need to ask me, try it out for yourself! |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
| |
|
|
| 27 Apr 2014 05:01 PM |
| Same here! Thank you so much! |
|
|
| Report Abuse |
|
|