Shagabash
|
  |
| Joined: 20 Jun 2008 |
| Total Posts: 6217 |
|
|
| 08 Jan 2014 02:01 PM |
First post in the Scripters forum! ^.^ Anyway:
Has anyone attempted artificial gravity? Is it even possible? By this, I mean, using some sort of BodyForce (perhaps a combination of them) to produce gravity that can go in any direction at any force? Perhaps even something that orients your character in the direction of the gravity? If it's achievable, it could potentially create some pretty fun gameplay. |
|
|
| Report Abuse |
|
|
HaxHelper
|
  |
| Joined: 19 Dec 2009 |
| Total Posts: 1208 |
|
|
| 08 Jan 2014 02:02 PM |
| http://www.roblox.com/Gravity-Cube-place?id=55703517 |
|
|
| Report Abuse |
|
|
Shagabash
|
  |
| Joined: 20 Jun 2008 |
| Total Posts: 6217 |
|
|
| 08 Jan 2014 02:04 PM |
Funny, I was just there and it gave me the idea.
It's true that changing the entire world's orientation is a good effect, but it would be even better if different characters could be pulled in different directions, at different rates, etc.
Also, my bad, by "BodyForce" I meant any sort of BodyMover. Any type of force, really. |
|
|
| Report Abuse |
|
|
HaxHelper
|
  |
| Joined: 19 Dec 2009 |
| Total Posts: 1208 |
|
|
| 08 Jan 2014 02:06 PM |
| what you've just described is certainly possible, although you'd probably want to use custom characters to avoid humanoid issues |
|
|
| Report Abuse |
|
|
Shagabash
|
  |
| Joined: 20 Jun 2008 |
| Total Posts: 6217 |
|
| |
|
Dicentium
|
  |
| Joined: 28 Aug 2011 |
| Total Posts: 18560 |
|
|
| 08 Jan 2014 02:40 PM |
follow me ill show you
i made artificial gravity. |
|
|
| Report Abuse |
|
|
kubuto2
|
  |
| Joined: 16 Jul 2008 |
| Total Posts: 1275 |
|
|
| 08 Jan 2014 05:14 PM |
While this is somewhat on topic, the players hats adds more weight to the player of some sort.
Is there a way to take it and make it look like everyone has the same gravity?
I'm guessing I would like to use a changed event on the characters parts in case one goes missing it would rewrite its gravity level. |
|
|
| Report Abuse |
|
|
|
| 08 Jan 2014 05:23 PM |
| The hats have parts inside of them. Just do the exact same thing to the parts inside the hats as you do with everything else. |
|
|
| Report Abuse |
|
|
suremark
|
  |
| Joined: 13 Nov 2007 |
| Total Posts: 6315 |
|
|
| 08 Jan 2014 06:57 PM |
This can be done with CFrames. Do you know about object and world spaces? You can change the orientation of BodyForces relative to other frames of reference. You would have to neutralize the pre-existing force of gravity with another BodyForce with a .force vector of approximately (0, 196.2, 0). (ROBLOX's gravity is slightly off from that value, probably due to float precision rounding or something.)
Unfortunately this can't be done with characters-- not easily. The Humanoid object overrides any sort of orientation you attempt to impose on the character. You would presumably have to create your own character construction, re-implement the HealthGUI interface, gear and tools and hopperbins, manual movement, and camera orientation. And IIRC the Camera's SetRoll() method between 1.57~ and -1.57~ (half-turns in radians), so you can't make the camera view upside down. |
|
|
| Report Abuse |
|
|
|
| 08 Jan 2014 10:36 PM |
Gravity cube is a very bad example of artificial gravity because it does not actually change the gravity. It merely rotates the cube.
-God Bless- |
|
|
| Report Abuse |
|
|
|
| 08 Jan 2014 10:39 PM |
Also, it is very possible to turn the camera upside down. Use the scriptable camera type and :SetRoll(). An example of this can be seen at my place.
-God Bless- |
|
|
| Report Abuse |
|
|
suremark
|
  |
| Joined: 13 Nov 2007 |
| Total Posts: 6315 |
|
|
| 08 Jan 2014 10:42 PM |
| Oh, I thought that SetRoll has restrictions placed on it. Nevermind that. |
|
|
| Report Abuse |
|
|
|
| 08 Jan 2014 10:44 PM |
To be fair, it does. It can only roll when the camera type is scriptable.
-God Bless- |
|
|
| Report Abuse |
|
|
suremark
|
  |
| Joined: 13 Nov 2007 |
| Total Posts: 6315 |
|
|
| 08 Jan 2014 11:03 PM |
No, I mean, I mentioned in my post:
"And IIRC the Camera's SetRoll() method between 1.57~ and -1.57~ (half-turns in radians), so you can't make the camera view upside down."
I must have been thinking of something else. |
|
|
| Report Abuse |
|
|
|
| 08 Jan 2014 11:11 PM |
Ah. Must have read that wrong after being perplexed as to what "IIRC" meant. Again though, between pi/2 and -pi/2 is a full circle...
-God Bless- |
|
|
| Report Abuse |
|
|
MettaurSp
|
  |
| Joined: 20 Mar 2010 |
| Total Posts: 3179 |
|
|
| 08 Jan 2014 11:18 PM |
| Just be glad we have RenderStepped for that now lol |
|
|
| Report Abuse |
|
|