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: Issues with BodyPosition

Previous Thread :: Next Thread 
badgraphix is not online. badgraphix
Joined: 26 Nov 2007
Total Posts: 22800
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 is online. 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
badgraphix is not online. badgraphix
Joined: 26 Nov 2007
Total Posts: 22800
16 Nov 2014 03:02 PM
Works the same in every other regard?
Report Abuse
Xsitsu is online. 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
badgraphix is not online. badgraphix
Joined: 26 Nov 2007
Total Posts: 22800
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
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
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 is online. 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
badgraphix is not online. badgraphix
Joined: 26 Nov 2007
Total Posts: 22800
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
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