Advertisement
djhonga2001

Untitled

Jul 18th, 2015
393
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. void OsciallateEntity(Entity entity, Vector3 position, float angleFreq, float dampRatio)
  2. {
  3. entity.ApplyForce(((position - entity.Position) x (angleFreq x angleFreq)) -
  4. (2 x angleFreq x dampRatio x entity.Velocity) + new Vector3(0, 0, 0.1f));
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement