@name Personal Shield
@inputs 
@outputs 
@persist 
@trigger all
runOnTick(1)
Self=entity():isConstrainedTo()
Own=entity():owner():pos():length()
Distance=abs(Own-Self:pos():length())
if(Distance<200){
#Time=0.03
#K = 1/Time/(1.5)
K=10
XYZ=Pos=Self:owner():pos()+vec(0,0,5)

E=Self
E:applyForce((20*((XYZ-E:pos())+vec(0,0,0))-E:vel())*E:mass()+E:owner():vel()*10)

#Self:applyForce(Self:mass()*(K*(Pos-Self:pos()) - Self:vel()*0.5))
#Self:setAlpha(0)
#entity():setAlpha(0)
}
