Advertisement
Guest User

Untitled

a guest
Jan 24th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. %%%%%%%%%% From this point the code differes from previous push. %%%%%%%%%
  2. angleHead = rand * 360;
  3. length = 20;
  4.  
  5. x_head = (cosd(angleHead) * length) + x_body;
  6. y_head = (sind(angleHead) * length) + y_body;
  7.  
  8. pos_head = [x_head y_head];
  9.  
  10. vec = pos_head - pos_body;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement