|
| 16 Nov 2014 02:47 PM |
I'm trying to make a moving platform with BodyPosition, however it keeps on rotating around.
Is there any way to lock it's CFrame in place as well so it doesn't change it's orientation? |
|
|
| Report Abuse |
|
|
Xsitsu
|
  |
| Joined: 28 Jul 2009 |
| Total Posts: 2921 |
|
|
| 16 Nov 2014 02:49 PM |
| BodyGyro is used to lock an object into a fixed rotation. |
|
|
| Report Abuse |
|
|
|
| 16 Nov 2014 03:02 PM |
| Works the same in every other regard? |
|
|
| Report Abuse |
|
|
Xsitsu
|
  |
| Joined: 28 Jul 2009 |
| Total Posts: 2921 |
|
|
| 16 Nov 2014 03:05 PM |
| BodyGyro and BodyPosition do two completely different things. You don't use one or the other, you use both of them at once. |
|
|
| Report Abuse |
|
|
|
| 16 Nov 2014 03:07 PM |
There doesn't seem to be any documentation on BodyGyro for whatever reason.
I set all the maxTorque axes to a very high number and it doesn't flip anymore, but it still spins around.
Care to elaborate what D and P do? |
|
|
| Report Abuse |
|
|
|
| 16 Nov 2014 03:08 PM |
If it still rotates in one direction, then you did NOT set ALL of the maxTorque axes to a high number.
D and P are explained on the wiki. |
|
|
| Report Abuse |
|
|
Xsitsu
|
  |
| Joined: 28 Jul 2009 |
| Total Posts: 2921 |
|
|
| 16 Nov 2014 03:11 PM |
From what I can remember, D is the dampening which determines how far off from the goal the object will start to slow down (so it wont go too fast and over turn) P is the power given to the object to reach its goal. Torque is the limit to how much force can be applied.
I usually just experiment with changing each number until I get the effect I want.
It's been a little while since I've actually used it in a project, so you're probably better off reading up on it here: http://wiki.roblox.com/index.php?title=BodyGyro |
|
|
| Report Abuse |
|
|
|
| 16 Nov 2014 03:19 PM |
| It doesn't seem like there's an easy way to keep a consistent speed then immediately stop. |
|
|
| Report Abuse |
|
|