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

Thread: An Expression a day keeps a clear mind away

  1. #11
    Wire Amateur lavacano201014's Avatar
    Join Date
    Dec 2008
    Posts
    40

    Default Re: An Expression a day keeps a clear mind away

    Code:
    P = Plate:angles():pitch()
    Y = Plate:angles():yaw()
    R = Plate:angles():roll()
    Maybe should be?:

    Code:
    if (first() | duped()) {
      P = Plate:angles():pitch()
      Y = Plate:angles():yaw()
      R = Plate:angles():roll()
    }
    That's how I'd roll it.
    Last edited by lavacano201014; 07-02-2009 at 06:23 PM. Reason: Indentation

  2. #12
    Wire Tutor chinoto's Avatar
    Join Date
    Apr 2008
    Location
    Brooklyn Park, MN. Lost my thumbdrive yet again...
    Posts
    1,983

    Default Re: An Expression a day keeps a clear mind away

    The expression would just spin around without a goal.
    (\__/) Expression 2 Resources: E2 Beginner's Guide | E2 Formatting Guide | E2 Function Reference | E2 Examples | Me
    (='.'=) PM me code and I'll send it back optimized if possible. (I find it fun dammit!)
    (")_(") Drunkie referring to an E2: "It's obvious that Chinoto made this, his coding style is all over it."

  3. #13
    Wirererer xixo12e's Avatar
    Join Date
    Feb 2009
    Location
    An arbitrary point in space
    Posts
    213

    Default Re: An Expression a day keeps a clear mind away

    Learned this in my first ever computer programming class.

    Count = Count + 1

    So, degrees = degrees +/- 1, if above 360 reset to 0.

  4. #14
    Wire Tutor chinoto's Avatar
    Join Date
    Apr 2008
    Location
    Brooklyn Park, MN. Lost my thumbdrive yet again...
    Posts
    1,983

    Default Re: An Expression a day keeps a clear mind away

    I already gave code that will work, it just needs tweaking if I coded it to tilt in the opoosite direction.
    (\__/) Expression 2 Resources: E2 Beginner's Guide | E2 Formatting Guide | E2 Function Reference | E2 Examples | Me
    (='.'=) PM me code and I'll send it back optimized if possible. (I find it fun dammit!)
    (")_(") Drunkie referring to an E2: "It's obvious that Chinoto made this, his coding style is all over it."

+ Reply to Thread
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Console Screen Clear
    By grandpapolly in forum Installation and Malfunctions Support
    Replies: 12
    Last Post: 05-31-2009, 09:33 PM
  2. i fun E2 (pick thing up wit your mind!!!)
    By steelseeker in forum Finished contraptions
    Replies: 12
    Last Post: 04-27-2009, 05:36 PM
  3. How do I clear an entity
    By SpectreCat in forum Expression 2 Discussion & Help
    Replies: 4
    Last Post: 03-31-2009, 01:20 PM
  4. Mind if I use some Wire stuff in a map?
    By Rybec in forum Wiremod General Chat
    Replies: 3
    Last Post: 04-07-2008, 11:09 AM
  5. Mind rover will not work :(
    By George in forum Off-Topic
    Replies: 6
    Last Post: 07-08-2007, 06:49 PM

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