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 » Scripters
Home Search
 

Re: 3D planet gravity?

Previous Thread :: Next Thread 
Cyberlegodog123 is not online. Cyberlegodog123
Joined: 27 Mar 2011
Total Posts: 5494
05 Jan 2015 02:21 PM
in a Super Mario Galaxy type of way, where you could walk around on a ball and the camera would follow you?

Any way this could work?
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
05 Jan 2015 02:29 PM
You'd need to put a BodyForce inside of the player or something

Force = Vector3.new(0,196.2,0)*thingy:GetMass()+((CFrame.new(Vector3.new(0,0,0), (Planet.Position - Torso.Position).unit).lookVector)*gravityPull)
Report Abuse
travddm is not online. travddm
Joined: 29 Mar 2012
Total Posts: 926
05 Jan 2015 02:32 PM
Cyberlego, this definitely could work, but it's very hard and it takes a lot of math. I, myself, haven't done it so I can't explain it to you.
Report Abuse
Fakecake777 is not online. Fakecake777
Joined: 19 Nov 2012
Total Posts: 441
05 Jan 2015 06:18 PM
Sice the Roblox characters will always try to have their head point upwards, even if you made the gravity work right, you would be walking with your head on the ground when you go to the bottom of the sphere.

I've no experience with this, but I imagine you could make a "fake" character that responds to keyboard input and all that, and have the character follow that instead. Then you could "just" rotate it to point away from the center of gravity.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
05 Jan 2015 06:22 PM
Fake characters or weld manipulation are ways.
But a cooler way: rotate the ball depending on camera's CFrame and if they pressed "w"/"a"/"d"/"s"
Report Abuse
Fakecake777 is not online. Fakecake777
Joined: 19 Nov 2012
Total Posts: 441
05 Jan 2015 06:26 PM
^That would be awesome, but with more than one player on a planet,I don't think it would work at all.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
05 Jan 2015 06:26 PM
Local parts :)
Although depending on what you are doing, this may be a huge drawback.
Report Abuse
Cyberlegodog123 is not online. Cyberlegodog123
Joined: 27 Mar 2011
Total Posts: 5494
06 Jan 2015 10:48 AM
"rotate the ball depending on camera's CFrame and if they pressed "w"/"a"/"d"/"s""
Ah, so instead of the characters moving around in space, the space would move around the character on command
Report Abuse
OtheusPompeiusMagnus is not online. OtheusPompeiusMagnus
Joined: 27 Aug 2008
Total Posts: 1300
06 Jan 2015 12:06 PM
f=m1*m2/r^2*G
a=f/m
v=v+a
p=p+v

These are the equations you're going to use.
Report Abuse
OtheusPompeiusMagnus is not online. OtheusPompeiusMagnus
Joined: 27 Aug 2008
Total Posts: 1300
06 Jan 2015 12:08 PM
eLunate, that's very wrong. Very terribly wrong.
Report Abuse
OtheusPompeiusMagnus is not online. OtheusPompeiusMagnus
Joined: 27 Aug 2008
Total Posts: 1300
06 Jan 2015 12:12 PM
Wait nevermind. Those are not the equations you're going to use. The guy before me stated it very well. You're going to do camera tricks.
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
06 Jan 2015 12:24 PM
Excuse me I am not wrong don't be silly.
Report Abuse
travddm is not online. travddm
Joined: 29 Mar 2012
Total Posts: 926
09 Jan 2015 08:57 PM
Oysi has actually done this without local parts, here: http://www.roblox.com/Galaxy-Wars-Under-construction-place?id=55703461 . Local parts can lag lower-end systems more than necessary.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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