The expression would just spin around without a goal.
Maybe should be?:Code:P = Plate:angles():pitch() Y = Plate:angles():yaw() R = Plate:angles():roll()
That's how I'd roll it.Code:if (first() | duped()) { P = Plate:angles():pitch() Y = Plate:angles():yaw() R = Plate:angles():roll() }
Last edited by lavacano201014; 07-02-2009 at 06:23 PM. Reason: Indentation
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."
Learned this in my first ever computer programming class.
Count = Count + 1
So, degrees = degrees +/- 1, if above 360 reset to 0.
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."
Bookmarks