|
| |||||||
| Advanced Gates For all your advanced wiremod gates. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| Newbie ![]() Join Date: May 2008
Posts: 9
![]() | Good Day. I come here once agin with a problem many (I hope) will answer with ease. Anyway, I'm building a Stolly (6x6 boat car truck ... thing) and I want the steering to be done via two thrusters that only work in water. So I have my truck, 2 thruster with a 5000 multiplier and an adv.pod controller. I tried this. Code: N@Stolly_Con I@Water A S D W Active O@Wleft Wright Tleft Tright Active==0 W==0 A==0 S==0 D==0 Water==1-> Tleft=0 Tright=0; Active==1 W==0 A==0 S==1 D==0 Water==1-> Tleft=-1 Tright=-1; Active==1 W==1 A==0 S==0 D==0 Water==1-> Tleft=1 Tright=1; What I would like is for when in water for the following to happen. W = Both thruster forward. S = Both thrusters backward. A = One thruster forward, one backwards. D = One thruster forward, one backwards but the otherway round to A. So can anyone help me please? ![]() ![]() My Stolly. |
| | |
| Sponsored Links | |
| | #2 (permalink) |
| Newbie ![]() Join Date: Feb 2008
Posts: 16
![]() | Well im not sure what Wleft and Wright are but ill give it a go Code: N@Stolly_Con I@Water A S D W Active O@Wleft Wright Tleft Tright W==1&Water&Active -> Tleft=1; W==1&Water&Active -> Tright=1; S==1&Water&Active -> Tleft=-1; S==1&Water&Active -> Tright=-1; A==1&Water&Active -> Tleft=0; A==1&Water&Active -> Tright=1; D==1&Water&Active -> Tleft=1; D==1&Water&Active -> Tright=0; |
| | |
| | #3 (permalink) |
| Wire Guru ![]() ![]() Join Date: Feb 2008 Location: London, ON (Canada, eh?)
Posts: 729
![]() ![]() | Code: N@Stolly_Con I@Water A S D W Active O@Wleft Wright Tleft Tright Active==0 & W==0 & A==0 & S==0 & D==0 & Water==1-> Tleft=0 Tright=0; Active==1 & W==0 & A==0 & S==1 & D==0 & Water==1-> Tleft=-1 Tright=-1; Active==1 & W==1 & A==0 & S==0 & D==0 & Water==1-> Tleft=1 Tright=1; | = or
__________________ WIREMOD WILL NOT WORK ON A PIRATED GMOD! ![]() ![]() MY COLOUR IS BLUE. Post your expressions here: www.wiredexpressions.tk It's my favourite country song. And I hate it. |
| | |
| | #4 (permalink) |
| Lifetime Supporter ![]() | untested but should work: Code: N@Stolly_Con I@Water A S D W Active O@Wleft Wright Tleft Tright Tleft = (Water & Active ? (W | D ? 1 : (S | A ? -1 : 0)) : 0) Tleft = (Water & Active ? (S | A ? 1 : (W | D ? -1 : 0)) : 0) |
| | |
| | #5 (permalink) |
| Newbie ![]() Join Date: May 2007
Posts: 6
![]() | Well, maybe the concept of what you would do with wheels could help here. With wheels, the formula could be (adding the water argument to make it a bit more relevant) Leftwheels = (W - S - A + D)*Water Rightwheels = (W - S - D + A)*Water If there are two thrusters in the back, one on the far left side of the back, and one on the right, both in a position to move the vehicle forward if they were to both turn on, then this formula should work for that too. Only problem, is that if it's only those two thrusters making it turn, it might turn a bit awkwardly. Last edited by DeadDogsEyes; 08-27-2008 at 01:44 AM.. |
| | |
| | #6 (permalink) | |
| Wire Guru ![]() ![]() | Quote:
it's the same as 2+3 = 5 But guess what.. 3 + 2=also 5! I'm a math genious | |
| | |
| | #7 (permalink) | |
| Newbie ![]() Join Date: May 2007
Posts: 6
![]() | Quote:
0-0-1+0 = -1 0-0-0+1 = +1 Left tires go backward, right tires go forward, turning to the left. Mine involves subtraction. 3-2 is not the same is 2-3. | |
| | |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
|