+ Reply to Thread
Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: Roll + Pitch aircraft

  1. #11
    Wire Noob Neotyguy40's Avatar
    Join Date
    Sep 2009
    Posts
    26

    Default Re: Roll + Pitch aircraft

    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.

  2. #12
    Wire Noob Neotyguy40's Avatar
    Join Date
    Sep 2009
    Posts
    26

    Default Re: Roll + Pitch aircraft

    I looked in that thread, but it still doesn't seem to have the things I am looking for. Anyone else know of anything?

  3. #13
    No u Divran's Avatar
    Join Date
    Jul 2008
    Location
    Sweden
    Posts
    4,582

    Default Re: Roll + Pitch aircraft

    Quote Originally Posted by Neotyguy40 View Post
    I looked in that thread, but it still doesn't seem to have the things I am looking for. Anyone else know of anything?
    Facepunch - View Single Post - Divran's E2 Thread
    SVN Tutorial
    My SVN:
    Code:
    http://divranspack.googlecode.com/svn/trunk/%20divranspack/
    Get dropbox and get 250 MB extra space: Dropbox

  4. #14
    Wire Noob Neotyguy40's Avatar
    Join Date
    Sep 2009
    Posts
    26

    Default Re: Roll + Pitch aircraft

    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.

  5. #15
    No u Divran's Avatar
    Join Date
    Jul 2008
    Location
    Sweden
    Posts
    4,582

    Default Re: Roll + Pitch aircraft

    Quote Originally Posted by Neotyguy40 View Post
    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.
    There's several tutorials on this forum.
    SVN Tutorial
    My SVN:
    Code:
    http://divranspack.googlecode.com/svn/trunk/%20divranspack/
    Get dropbox and get 250 MB extra space: Dropbox

  6. #16
    Wire Noob Ruadhan's Avatar
    Join Date
    Mar 2010
    Location
    United Kingdom
    Posts
    12

    Default Re: Roll + Pitch aircraft

    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.

  7. #17
    billywitchdoctor.com Schilcote's Avatar
    Join Date
    Jan 2009
    Location
    There.
    Posts
    2,006

    Default Re: Roll + Pitch aircraft

    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.

    Quote Originally Posted by Ruadhan View Post
    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.

    You mean you've never done that? Poppycock.


    [19:16:47]Client "rcdraco" spawned in server
    [19:17:10]rcdraco: hamburgertime
    [19:18:04]rcdraco was killed by worldspawn
    [19:21:50]Dropped "rcdraco" from server

+ Reply to Thread
Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots