Data Realms Fan Forums http://45.55.195.193/ |
|
Negative mass? http://45.55.195.193/viewtopic.php?f=1&t=24291 |
Page 1 of 1 |
Author: | PX85 [ Sun Jun 19, 2011 3:57 am ] |
Post subject: | Negative mass? |
I'm trying to make a device that can lower an actors mass, to make flight easier. ^^ Sadly, I learned that you cannot simply put in "Mass = -5". The coding works, I tried it with positive mass. I wanted to know... Is it possible to lower mass using LUA? (tl;dr? ) |
Author: | Asklar [ Sun Jun 19, 2011 3:59 am ] |
Post subject: | Re: Negative mass? |
Yeah, you can do pretty much anything with lua right now. But what exactly are you trying to do? A gun that when fired lowers the mass of the actor for a period of time or something like that? |
Author: | PX85 [ Sun Jun 19, 2011 4:03 am ] |
Post subject: | Re: Negative mass? |
I'm trying to make something like a shield. You can hold it, but it can't fire. I want it to give the actor negative mass for as long as they hold it. Is THAT possible? O_o |
Author: | PX85 [ Sun Jun 19, 2011 4:08 am ] |
Post subject: | Re: Negative mass? |
I'm trying to make a device that can lower an actors mass, to make flight easier. I've been wording everything wrong, probably. Here is what I want to know, If you can make a devices have negative mass at ALL times (and if that can lower the mass of an actor if in possession of said device, not to negative values, but possibly to 0.001) I tried to include everything I wanted to know there. Sorry of that makes no sense >_< |
Author: | Asklar [ Sun Jun 19, 2011 4:13 am ] |
Post subject: | Re: Negative mass? |
Any object that has any type of mass WILL have the same mass always, unless you change it with lua at some point in game. And if an actor holds that object, that mass will add up to the total mass of the actor, so, if you give him a shield with negative mass, it's mass will get reduced by an X amount. Now, if you want to make the mass of any actor who holds it become something like 0.0001 you would need to use lua. |
Author: | PX85 [ Sun Jun 19, 2011 4:17 am ] |
Post subject: | Re: Negative mass? |
Alright, thanks ^^ Now I need to learn how to script LUA. |
Author: | neroe23 [ Fri Jun 24, 2011 11:52 am ] |
Post subject: | Re: Negative mass? |
Maybe you just can make a lua code for the shield that seeks the mass of the holder and sets it to 0.001 kg as long as the shield is held. |
Author: | CCS [ Fri Jul 22, 2011 5:00 am ] |
Post subject: | Re: Negative mass? |
Quote: Make the mass negative. It does work. If you don't get errors, it does work, you just need a higher number. Would this be like finding the sum of the actor's total mass (and desired equipment) and then some number higher than that mass, to make the negative value? Just in case - an example Actor Mass + Equip = 24. The effect on actor is to be half the weight, so: (24/2) + 24 = 36 Shield Mass = -(36) |
Author: | Grif [ Fri Jul 22, 2011 8:23 pm ] |
Post subject: | Re: Negative mass? |
Set it to negative 200 or so, that should pretty well outweigh most actors. I promise that, unless a significant change has been made to the base physics engine since not-many builds ago, holding a negative mass item anywhere in your inventory will decrease your effective weight. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |