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 is BodyThrust?

Previous Thread :: Next Thread 
FoolHater is not online. FoolHater
Joined: 17 Jul 2008
Total Posts: 2141
01 Nov 2012 06:00 AM
Of the 7 BodyMovers, I don't understand the significance of BodyThrust and why a scripter/builder when use that instead of BodyPosition or BodyForce.

Also, is their a difference between BodyThrust and BodyForce? I watched a video about Roblox's BodyMovers, but the video creator could not understand why his BodyThrust object made the bricks behave weirdly.
Report Abuse
FreeToTake is not online. FreeToTake
Joined: 21 Apr 2010
Total Posts: 1827
01 Nov 2012 06:09 AM
bodythrust is a force in a direction
bodyposition is a force to a position

example :

a jetpack would use bodythrust, because you wouldn't want it to stop at a certain position

an elevator would use bodyposition, because it has to stop at a floor.
Report Abuse
FoolHater is not online. FoolHater
Joined: 17 Jul 2008
Total Posts: 2141
01 Nov 2012 06:20 AM
In the Wiki, BodyForce: The BodyForce object is used to apply force on an object in a specific direction.

BodyThrust: The BodyThrust object applies a force on it's Parent towards a location. The property location allows you to specify in what direction the thrust should be applied.

Still seems very close in use.
Report Abuse
FoolHater is not online. FoolHater
Joined: 17 Jul 2008
Total Posts: 2141
01 Nov 2012 06:26 AM
That's what I don't understand. If the force property applies a force on the axis of the object (since it is a Vector3 value), why does BodyThrust need a location property? BodyForce only has a force property, yet bricks can easily fly in a set direction if you manipulate just the force property.
Report Abuse
FreeToTake is not online. FreeToTake
Joined: 21 Apr 2010
Total Posts: 1827
01 Nov 2012 06:50 AM
whoops i'm sorry :


bodyforce only needs force. force indicates the force in the DIRECTION it's going.


bodythrust needs force and position. force indicates the force in the DIRECTION it's going and position indicates a certain position.


bodyposition needs force and position. force indicates the force that the part is being held and position indicates where the part is (or tries to go if the force isn't strong enough).


now the difference between bodythrust and bodyposition is basically bodythrust is a force pulling the object toward the position and bodythrust is keeping the object there.


if you would want someone to jump to (0,10,0) you use bodythrust with position (0,10,0)
if you would want someone to fly straight up in the air you use bodyforce with force (0,10000,0)
if you would want someone to float at 10 high (constant) you use bodyposition with force (0,1000,0) and position (0,10,0)
Report Abuse
Aerideyn is not online. Aerideyn
Joined: 16 Jan 2010
Total Posts: 1882
01 Nov 2012 07:08 AM
Think of body Thrust as a rocket engine, it thrusts a brick forwards at whatever orientation it happens to be - it's thrust direction is relative to the brick.

Body force is more like gravity, flip the brick which ever way you want, the force will still be acting the same direction.
Report Abuse
Aerideyn is not online. Aerideyn
Joined: 16 Jan 2010
Total Posts: 1882
01 Nov 2012 07:23 AM
As for what freetotake said.. no no no no.

Body thrust is just a thrust acting along a brick.
The position i believe is where the thrust us coming from in brick coordinates (where 0,0,0 is the brick center no matter where the brick may be in world space)

when you add a body thrust object imagine you are attaching a small rocket to the brick.
If you attach the rocket to the very center, the rocket will thrust the brick and cause it to slide around but not spin.
So what if you move the rocket, so it is sitting on the edge of the brick - then the brick will probably spin about because the thrust is not acting through the center of gravity.

That is what the position property is, where inside that brick is the thrust coming from, where (0,0,0) is the center, (-1,0,0) is 1 stud to the left of center and so on.
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