+ Reply to Thread
Page 2 of 7 FirstFirst 1234 ... LastLast
Results 11 to 20 of 67

Thread: Drones with a Mad Scientist

  1. #11
    Wire Sofaking nescalona's Avatar
    Join Date
    Apr 2007
    Location
    Shoreline, Washington
    Posts
    1,299

    Default Re: Drones with a Mad Scientist

    Two questions I have.

    "Plate = entity():isWeldedTo()"

    You said E:isWeldedTo() returns an array of the entities E is welded to. Since you defined Plate as an entity, how come you can store an array of entities (even one of size 1) to an entity variable?

    Also, why would multiplying angles by -1000 repeatedly produce stability? If I wanted to make something spaz out, I might try something like that. What exactly does E:angles() return?

  2. #12
    Wire Sofaking Officer Tibbles's Avatar
    Join Date
    Aug 2008
    Location
    Barnus Philbert Boulevard
    Posts
    867

    Default Re: Drones with a Mad Scientist

    Because arrays are cleaner, plus if you had to applyForce to multiple props, this comes in handy.

  3. #13
    Wiremod Helper Lyinginbedmon's Avatar
    Join Date
    Mar 2009
    Location
    England
    Posts
    2,659

    Default Re: Drones with a Mad Scientist

    Quote Originally Posted by nescalona View Post
    Two questions I have.

    "Plate = entity():isWeldedTo()"

    You said E:isWeldedTo() returns an array of the entities E is welded to. Since you defined Plate as an entity, how come you can store an array of entities (even one of size 1) to an entity variable?
    You're confusing E:isWeldedTo() and E:getConstraints(). The former returns the entity that the entity was first welded to, the latter returns an array of everything the entity is constrained to. Tibbles is correct in using an array for multiple props, though that is currently not a function of Robert.

    Since E2 chips weld to whatever they were spawned on (If it isn't the world), E:isWeldedTo() is a good shorthand way of getting that entity from the chip.
    Quote Originally Posted by nescalona View Post
    Also, why would multiplying angles by -1000 repeatedly produce stability? If I wanted to make something spaz out, I might try something like that. What exactly does E:angles() return?
    The $Ang*5 produces stability because it counteracts the motion, Ang itself is multiplied by 1000 to so that it can quickly rebuff high angular motion and affect larger objects as well. In this instance, it makes the holding force stronger.

    If you increase the multiplier beyond a certain level (Which is annoyingly different between prop models), then it starts spazzing out.

    E:angles() returns an angle for the Pitch, Yaw, and Roll of the prop. Since the two props composed in Robert have 0 in all three in the positions that they are placed in, negating the angles keeps them nice and steady.

  4. #14
    Wire Sofaking nescalona's Avatar
    Join Date
    Apr 2007
    Location
    Shoreline, Washington
    Posts
    1,299

    Default Re: Drones with a Mad Scientist

    Quote Originally Posted by Officer Tibbles View Post
    Because arrays are cleaner, plus if you had to applyForce to multiple props, this comes in handy.
    I still don't see why you get to store an array to a variable that has clearly been declared as "entity". Or why you can apparently applyForce an array. That doesn't make sense; you should be able to apply force to entities, not arrays. If you want to applyForce every entity in an array, you do the logical thing: loop through the array and applyForce each element.

  5. #15
    Wiremod Helper Lyinginbedmon's Avatar
    Join Date
    Mar 2009
    Location
    England
    Posts
    2,659

    Default Re: Drones with a Mad Scientist

    I'm not storing an array into an entity variable, if I did the code would invalidate, as it does when you type "@persist Vec" and "Vec = vec(14,287,28)".

  6. #16
    Wire Sofaking nescalona's Avatar
    Join Date
    Apr 2007
    Location
    Shoreline, Washington
    Posts
    1,299

    Default Re: Drones with a Mad Scientist

    Quote Originally Posted by Lyinginbedmon View Post
    You're confusing E:isWeldedTo() and E:getConstraints().
    Oops.

    Quote Originally Posted by Lyinginbedmon View Post
    Ang itself is multiplied by 1000 to so that it can quickly rebuff high angular motion and affect larger objects as well.
    This is the one point I don't understand. Why would multiplying an angle do anything but increase angular velocity, away from 0?

  7. #17
    Wiremod Helper Lyinginbedmon's Avatar
    Join Date
    Mar 2009
    Location
    England
    Posts
    2,659

    Default Re: Drones with a Mad Scientist

    I'm not myself entirely sure, but multiplying the value input into applyForce and its variants basically produces stronger forces.

  8. #18
    Banned Nicolai1's Avatar
    Join Date
    Nov 2008
    Location
    Denmark.
    Posts
    1,251

    Default Re: Drones with a Mad Scientist

    Quote Originally Posted by nescalona View Post
    Oops.

    This is the one point I don't understand. Why would multiplying an angle do anything but increase angular velocity, away from 0?
    Because an RC-Cart can't move a bull dozer.

  9. #19
    Wirererer DarkMonkey's Avatar
    Join Date
    Jun 2008
    Posts
    206

    Default Re: Drones with a Mad Scientist

    Very nice. Well-written, entertaining, and quite helpful. Timers seem pretty nifty now that I understand them.

  10. #20
    Wire Sofaking nescalona's Avatar
    Join Date
    Apr 2007
    Location
    Shoreline, Washington
    Posts
    1,299

    Default Re: Drones with a Mad Scientist

    Quote Originally Posted by Nicolai1 View Post
    Because an RC-Cart can't move a bull dozer.
    Well clearly if you want something done and it's not getting done with enough force, you increase multipliers. But my point is that multiplying an angle by anything with an absolute value greater than one is going to move you away from 0, not towards zero. Increasing the multiplier should just make the error even greater.

    Reality contradicts me apparently but I don't see where I've gone wrong.

+ Reply to Thread
Page 2 of 7 FirstFirst 1234 ... LastLast

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