|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 06 Jan 2015 12:08 PM |
| eLunate, that's very wrong. Very terribly wrong. |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|