Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- seek: (target) ->
- @seeking = true
- focus = target.position.subtract @position
- focus.setLength @maxSpeed
- focus.subtract @velocity
- applyForce: (force) ->
- @acceleration.add force
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement