@name 
@inputs 
@outputs 
@persist E:entity
@trigger 
@model models/hunter/blocks/cube1x1x025.mdl

if(first()){
    E=entity()

    holoCreate(1, E:toWorld(vec(0,0,-50)))
    holoCreate(2, E:toWorld(vec(0,15,-50)))
    holoModel(2, "hqicosphere2")
    holoModel(1, "hqicosphere2")
    holoParent(2, E)
    holoParent(1, E)

    runOnTick(1)
}

R1=rangerOffset(50,E:pos(),-E:up())
holoPos(1, R1:position()+E:up()*5)
holoPos(2, R1:position()+E:up()*5)

if(R1:hit()){
    E:applyForce(((vec(0,0,50-R1:distance())*20)-E:vel())*E:mass())
}
