aceeri

Welding

Dec 6th, 2014
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1.  
  2. --print(math.tan((character["Right Arm"].Position.Y - character["Left Arm"].Position.Y)/(character["Left Arm"].Position.X - character["Right Arm"].Position.X)))
  3. --print(math.tan((character["Right Arm"].Position.Y - character["Left Arm"].Position.Y)/(character["Left Arm"].Position.Z - character["Right Arm"].Position.Z)))
  4.  
  5. --[[ to-do:
  6. - get end point of left arm and right arm
  7.  
  8. initial:
  9. Right Arm: ?, ?, ?, -1, 0, 0, 0, 0.837201238, -0.546894729, 0, -0.546894729, -0.837201238
  10. Left Arm: ?, ?, ?, -0.972476006, 0.23294574, 0.00513258018, -0.116578743, -0.467370659, -0.876340687, -0.201741099, -0.852818727, 0.481663615
  11. Staff: ?, ?, ?, -0.452335924, 0.830457628, -0.32516548, 0.512324333, 0.540396094, 0.667454958, 0.730010927, 0.135323569, -0.669904172
  12.  
  13. attack:
  14. Right Arm: 1.5, -0.0180602074, -0.391341716, -1, 0, 0, 0, 0.837201238, -0.546894729, 0, -0.546894729, -0.837201238
  15. Left Arm: -1.09000027, -0.503503084, -0.829947054, -0.968168616, 0.249062136, 0.0248126369, -0.0288858023, -0.0127104763, -0.999500692, -0.24862276, -0.968402565, 0.019500643
  16. Staff: 1.79470539, 0.556067705, 1.44151568, -0.452317655, 0.830464542, -0.32517305, 0.191967025, 0.446712971, 0.873840094, 0.870951831, 0.332830787, -0.361478001
  17.  
  18.  
  19. angle?
  20. math.tan((character["Right Arm"].Position.Y - character["Left Arm"].Position.Y)/(character["Left Arm"].Position.X - character["Right Arm"].Position.X))
  21.  
  22. - position staff into right->left angle
  23. --]]
Advertisement
Add Comment
Please, Sign In to add comment