Advertisement
Masterchoc

Untitled

Jan 6th, 2018
436
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     seek: (target) ->
  2.         @seeking = true
  3.         focus = target.position.subtract @position
  4.         focus.setLength @maxSpeed
  5.         focus.subtract @velocity
  6.  
  7.  
  8.     applyForce: (force) ->
  9.         @acceleration.add force
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement