Guest User

Untitled

a guest
Nov 16th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. player.block = hgtransform;
  2. patch('XData',x,'YData',y,'FaceColor','blue','Parent',player.block);
  3.  
  4. player.block.Matrix = makehgtform('translate',[0 player.pos 0]);
  5.  
  6. block = hgtransform;
  7. square = polyshape(x,y);
  8. player.block = plot(square);
  9. player.block.Parent = block;
Add Comment
Please, Sign In to add comment