I looked in that thread, but it still doesn't seem to have the things I am looking for. Anyone else know of anything?
I'm sorry for not being specific. It's just that when I tried to tell my friend what I was doing using specifics, he had no idea what I meant.
Anyway, this is basically what I am trying to make:
An e2 chip that allows the entity it's attached to roll and pitch up and down without using thrusters.
The controls would be linked to a pod controller attached to a seat.
W makes the pitch go up
S makes the pitch go down
A makes the roll go left
D makes the roll go right
Spacebar pushes it forward
Something that doesn't spazz
I will be looking through that thread you suggested.
I looked in that thread, but it still doesn't seem to have the things I am looking for. Anyone else know of anything?
SVN Tutorial
My SVN:Get dropbox and get 250 MB extra space: DropboxCode:http://divranspack.googlecode.com/svn/trunk/%20divranspack/
Wow! That's epic!
It works perfectly, but I don't seem to know what is going on through that e2, there isn't really any comments on how it works.
Mind explaining how it works? I personally don't know anything about 'quaterions', and I want to clean up the controls and get rid of the things I don't need.
SVN Tutorial
My SVN:Get dropbox and get 250 MB extra space: DropboxCode:http://divranspack.googlecode.com/svn/trunk/%20divranspack/
my advice for learning to read other people's code...
first. every coder is different, its like handwriting. I mean literally, after a year, my lecturer could tell who coded what just by the style we'd done it in. so don't expect that once you figure out one guy's E2 you'll be able to figure out another that does the same job.
second: know what it does. run it through its paces and figure out what its capable of. when you know what it does, the rest is extrapolation [incidentally, that's a good way to -make- stuff too. know what you want, then work out how to make it do it.]
third, work from the edges of the code inwards. most E2s have both inputs and outputs. find the outputs, follow the code backwards until you get to the inputs. fairly simple.
fourth: read the comments, but don't rely on them. they can be wierd. I point you at the C++ code for the SMG in HL2. its got some REALLY wierd comments. I think the dev went slightly crazy and started babbling about squirrels.
as a matter of principle I don't use other people's E2's except to teach myself to make what they did. so the above rules help a lot. hope they help you guys.
Ruadhan
oh yah, and heya divran, after four years I finally got my account sorted here XD
"It's not that I'm so smart, it's just that I stay with problems longer" - Albert Einstein
Unsmart's Build server - resident wire-teacher.
I made a automatic stabilization system for aircraft semi-recently... Did it entirely with gates too. It is literally impossible to fall out of the sky with the system enabled, that's how good it is. Seriously, no matter how hard you try it won't let you fall. You have to turn it off to land, but that's pretty simple too. You basically just let go of the controls (except for the one that turns off stabilization) and the plane noses down, picks up speed, levels off, and you're stopped by friction with the ground.
You mean you've never done that? Poppycock.
Bookmarks