Skip to content

Commit

Permalink
update body docs
Browse files Browse the repository at this point in the history
  • Loading branch information
liabru committed Dec 29, 2022
1 parent 3a8264c commit 6bb2855
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/body/Body.js
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,7 @@ var Axes = require('../geometry/Axes');
*/

/**
* A `Number` specifying the angle of the body.
* A `Number` specifying the angle of the body, in radians.
*
* @property angle
* @type number
Expand Down Expand Up @@ -1006,7 +1006,7 @@ var Axes = require('../geometry/Axes');
* A `Number` that accumulates the total torque (turning force) applied to the body for a single update. See also `Body.applyForce`.
* Torque is zeroed after every `Engine.update`, so constant torques should be applied for every update they are needed.
*
* Torques are converted to acceleration on every update, which depends on body inertia and the engine update delta.
* Torques result in angular acceleration on every update, which depends on body inertia and the engine update delta.
*
* @property torque
* @type number
Expand Down Expand Up @@ -1150,7 +1150,7 @@ var Axes = require('../geometry/Axes');
*/

/**
* _Read only_. Automatically calculated when vertices, mass or density are set.
* _Read only_. Automatically calculated when vertices, mass or density are set or set through `Body.setInertia`.
*
* A `Number` that defines the moment of inertia of the body. This is the second moment of area in two dimensions.
*
Expand All @@ -1162,7 +1162,7 @@ var Axes = require('../geometry/Axes');
*/

/**
* _Read only_. Automatically calculated when vertices, mass or density are set.
* _Read only_. Automatically calculated when vertices, mass or density are set or calculated by `Body.setInertia`.
*
* A `Number` that defines the inverse moment of inertia of the body (`1 / inertia`).
*
Expand Down
2 changes: 1 addition & 1 deletion src/core/Engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ var Body = require('../body/Body');

/**
* Applies `Body.updateVelocities` to all given `bodies`.
* @method _bodiesUpdate
* @method _bodiesUpdateVelocities
* @private
* @param {body[]} bodies
*/
Expand Down

0 comments on commit 6bb2855

Please sign in to comment.