All pastes #753236 Raw Edit

Someone

public text v1 · immutable
#753236 ·published 2007-10-29 01:40 UTC
rendered paste body
    vector currentPos = llGetPos();

    vector relative_pos = (targetPos - currentPos) / 25.0;
    float max_ground = -1.0;
    float ground;
    vector foo = currentPos;
    integer x;
    for(x=0;x<=25;++x)
    {
        ground = llGround(currentPos + (relative_pos * x));
        if(ground > max_ground)
        {
            max_ground = ground;
        }
    }