newMeshCollider.lua 844 B

12345678910111213141516171819202122232425262728293031323334
  1. return {
  2. tag = 'colliders',
  3. summary = 'Add a Collider with a MeshShape to the World.',
  4. description = 'Adds a new Collider to the World with a MeshShape already attached.',
  5. arguments = {
  6. {
  7. name = 'vertices',
  8. type = 'table',
  9. description = 'The table of vertices in the mesh. Each vertex is a table with 3 numbers.'
  10. },
  11. {
  12. name = 'indices',
  13. type = 'table',
  14. description = [[
  15. A table of triangle indices representing how the vertices are connected in the Mesh.
  16. ]]
  17. }
  18. },
  19. returns = {
  20. {
  21. name = 'collider',
  22. type = 'Collider',
  23. description = 'The new Collider.'
  24. }
  25. },
  26. related = {
  27. 'Collider',
  28. 'World:newCollider',
  29. 'World:newBoxCollider',
  30. 'World:newCapsuleCollider',
  31. 'World:newCylinderCollider',
  32. 'World:newSphereCollider'
  33. }
  34. }