@name RANGEREXAMPLES/RangerHull
@inputs 
@outputs Size:vector
@persist E:entity MyHeight Size:vector
@model models/cheeze/pcb/pcb4.mdl

if(first()) {
    runOnTick(1)
    E = entity()
    MyHeight = 50
    Size = E:boxSize()
}
   
#Ranger
R = rangerOffsetHull(E:pos(),E:pos() - vec(0,0,99999999),Size)
Pos = R:position() + vec(0,0,MyHeight)

#ApplyForce
Vec = (Pos - E:pos())*5
Z = ((Vec-E:vel())*E:mass()):z()
E:applyForce(vec(0,0,Z))
