
Originally Posted by
hyfvenom
can you please post the stability chip for the vtol the site it was on deleted it?
Hover:
Code:
@name Hover
@inputs
@outputs Thruster Dist
@persist Diff
interval(10)
rangerHitWater(1)
Ranger = ranger(10^7) #Sets Ranger to a ranger with a length of 10000000 (aka 10^7)
Dist = Ranger:distance() #Sets Dist of the distance the ranger before hitting something.
Height = 100
Diff = (Height-Dist) * 4
Thruster = Diff + $Diff * 4
Stability:
Code:
@persist Ang:angle
runOnTick(1)
Ang = entity():angles():setYaw(0)
applyAngForce(angnorm(-Ang-entity():angVel()/10)*1000)
I didn't write these, but I don't know who did, so thanks, if you are out there.
Bookmarks