Guest User

Untitled

a guest
Dec 11th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. TargetAngle = Me:angles() + ang(Me:eyeAngles():pitch(),0,0)
  2. TPos = Me:attachmentPos("eyes") + Me:forward() * 20 + Me:right()* 40 + Me:up()* -1
  3.  
  4. Torque = E:toLocal(rotationVector(quat(TargetAngle)/quat(E))+E:pos())
  5. E:applyTorque((Torque*1000-E:angVelVector()*20)*E:inertia())
  6. E:applyForce(((TPos - E:pos())*20-E:vel())*E:mass())
Add Comment
Please, Sign In to add comment