Skip to content

Commit

Permalink
added note in docs about vertices order
Browse files Browse the repository at this point in the history
  • Loading branch information
liabru committed Jun 25, 2016
1 parent 1340159 commit ad033f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/body/Body.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ var Axes = require('../geometry/Axes');
/**
* Creates a new rigid body model. The options parameter is an object that specifies any properties you wish to override the defaults.
* All properties have default values, and many are pre-calculated automatically based on other properties.
* Vertices must be specified in clockwise order.
* See the properties section below for detailed information on what you can pass via the `options` object.
* @method create
* @param {} options
Expand Down
2 changes: 2 additions & 0 deletions src/geometry/Vertices.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ var Common = require('../core/Common');
* The `Vertices.create` method returns a new array of vertices, which are similar to Matter.Vector objects,
* but with some additional references required for efficient collision detection routines.
*
* Vertices must be specified in clockwise order.
*
* Note that the `body` argument is not optional, a `Matter.Body` reference must be provided.
*
* @method create
Expand Down

0 comments on commit ad033f5

Please sign in to comment.