|
| |||||||
| Wiremod Tutorials Post your wiremod tutorials/guides here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| Newbie ![]() | i cannot figure out how to make a platform that self corrects its height when it goes over a slant or somthing. ive heard you can use [hoverballz,ranger,and express gate] but i cant get the gate right. can anyone help...? |
| | |
| Sponsored Links | |
| | #2 (permalink) |
| Newbie ![]() | Place a ranger under your machine. It musn't touch the ground, but it must be with a long enough beam, so that it can react when something is in the way. The best way to place it is to place it at a 45 degrees angle. This way it can detect things that are a bit to the front and react before the machine hits it. Make an exspression gate> Label: whatever Inputs: Z Outputs: Ranger Line1: Ranger>*You choose*->Z=*You choose how high* Line2: Ranger<*You choose*->Z=*Again, your choise* And it will be like: If the distance from the Ranger is more than the Value, then Z(Hoverball hight) is = to a Value you choose. And vice versa. Hope I helped.
__________________ There are no lame problems. Just lame questions. There are 10 types of people in the world: Those who understand binary, and those who don't. ![]() ![]() |
| | |
| | #3 (permalink) |
| COMPLETE BLOODY BASTARD ![]() ![]() | Completely untested, but you get the idea. Code: @name Hoverball stabiliser in E2
@inputs Setpoint Ranger
@outputs HoverVel
interval(100)
if (Ranger - Setpoint > 5) {
HoverVel = -1
} else if (Setpoint - Ranger > 5) {
HoverVel = 1
}
__________________ “A designer knows he has achieved perfection not when there is nothing left to add, but when there is nothing left to take away.” —Antoine De Saint-Exupery |
| | |
| | #5 (permalink) |
| Newbie ![]() | skoinks how would i do this if i wanted it to be 50 of the ground all the time... example? so it looks kinda like this - lol and when it goes up the slope... // woudl it be like ranger > 50 -> Z = -1? Last edited by badass657; 11-10-2008 at 02:29 PM.. |
| | |
| | #7 (permalink) |
| Wire Guru ![]() ![]() Join Date: Aug 2007
Posts: 805
![]() | make sure ranger outputs world xyz.
__________________ |
| | |
| | #8 (permalink) |
| Newbie ![]() | Just place an add chip. Add the value in which the hoverballs are by default and add the extra value (Expression.)
__________________ There are no lame problems. Just lame questions. There are 10 types of people in the world: Those who understand binary, and those who don't. ![]() ![]() |
| | |
| | #9 (permalink) |
| Newbie ![]() Join Date: Oct 2008
Posts: 6
![]() | You can also use a ranger with each hoverball, then summ heights from rangers and divide the sum by the rangers count, then add an extra value to the result and set the final result as height of every hoverball. The result of all theese manipulations will be smooth height correcting. |
| | |
| Sponsored Links | |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
|