Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TargetAngle = Me:angles() + ang(Me:eyeAngles():pitch(),0,0)
- TPos = Me:attachmentPos("eyes") + Me:forward() * 20 + Me:right()* 40 + Me:up()* -1
- Torque = E:toLocal(rotationVector(quat(TargetAngle)/quat(E))+E:pos())
- E:applyTorque((Torque*1000-E:angVelVector()*20)*E:inertia())
- E:applyForce(((TPos - E:pos())*20-E:vel())*E:mass())
Add Comment
Please, Sign In to add comment