| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- return {
- summary = 'Set mass properties for the Collider.',
- description = 'Sets mass properties for the Collider.',
- arguments = {
- cx = {
- type = 'number',
- description = 'The x position of the center of mass.'
- },
- cy = {
- type = 'number',
- description = 'The y position of the center of mass.'
- },
- cz = {
- type = 'number',
- description = 'The z position of the center of mass.'
- },
- mass = {
- type = 'number',
- description = 'The computed mass of the Collider.'
- },
- inertia = {
- type = 'table',
- description = [[
- A table containing 6 values of the rotational inertia tensor matrix. The table contains the
- 3 diagonal elements of the matrix (upper left to bottom right), followed by the 3 elements
- of the upper right portion of the 3x3 matrix.
- ]]
- }
- },
- returns = {},
- variants = {
- {
- arguments = { 'cx', 'cy', 'cz', 'mass', 'inertia' },
- returns = {}
- }
- },
- related = {
- 'Collider:getMass',
- 'Collider:setMass',
- 'Shape:getMass'
- }
- }
|