wire force field generators, how the hell would thrusters attached to an E2 make things float...
Hey, I was wondering if you could make an E2 chip, maybe with forcers or even applyForce() where if you put something in a specific area, there is no gravity. I have put thrusters on the bottom of props to make it so they are suspended in air, and was wondering if you could apply this concept to a bigger area, possibly without thrusters. Now I am not great with E2, so I am suggesting this. But, I am not putting it into the suggestions and ideas spot, because I also want help learning how to do this.
Thanks.
wire force field generators, how the hell would thrusters attached to an E2 make things float...
A-Z Materials - Released!!!!!!!
Lol, nvm about the E2. I mean if there would be one for a big area using applyForce(). But when I used the thrusters, I just changed the force and stuck it on a prop :P
But I do not mean an extra wire mod, I mean something I can use in a server.
Is it possible to make an area where if there is anything in it, applyForce() makes it so it floats in the air, but you can move it around?
Wire E to some entity and it'll have no-gravity simulatedCode:@inputs E:entity runOnTick(1) E:applyForce(vec(0, 0, 9.8)*E:mass())
Thank you Nicolai. Yet, I already knew this xD
I will give you an example.
I/E:
I make a big box. Inside of this box, I have an E2 chip. This E2 chip makes it so that everything inside of the box has no gravity. Is this possible? (Maybe not players, only props have no gravity in the box)
Couldn't you just use that? It's limited but the best way I know of though :/Code:runOnTick(1) findInSphere(entity():pos(), 1000) find():applyForce(vec(0, 0, 9.8)*find():mass()) findResult(2):applyForce(vec(0, 0, 9.8)*findResult(2):mass()) findResult(3):applyForce(vec(0, 0, 9.8)*findResult(3):mass()) findResult(4):applyForce(vec(0, 0, 9.8)*findResult(4):mass()) findResult(5):applyForce(vec(0, 0, 9.8)*findResult(5):mass()) findResult(6):applyForce(vec(0, 0, 9.8)*findResult(6):mass())
I will test it now.
EDIT:
This does not find the props. If I understand the code properly, I have to add in my own entities. I want it to find the entities, and then make it so they have no weight, and that they suspend in the air.
Last edited by grandpapolly; 04-12-2009 at 04:56 PM.
Physics in gmod does not correlate with physics in real life - that will only slow its fall down. You can use deltas and stuff to make it stay at a set height though...
Bookmarks