mirror of
https://github.com/liabru/matter-js.git
synced 2025-01-21 17:14:38 -05:00
change argument name in solveAngleLimits
This commit is contained in:
parent
f58388b8c6
commit
6f175e1652
1 changed files with 3 additions and 3 deletions
|
@ -398,7 +398,7 @@ var Common = require('../core/Common');
|
|||
* @private
|
||||
* @method solveAngleLimits
|
||||
*/
|
||||
Constraint.solveAngleLimits = function(constraint, body, angle, angleMin, angleMax, delta, deltaScale, currentLength, pointAWorld, pointBWorld) {
|
||||
Constraint.solveAngleLimits = function(constraint, body, angle, angleMin, angleMax, delta, direction, currentLength, pointAWorld, pointBWorld) {
|
||||
var currentAngle = (body ? body.angle : 0) + (constraint.length > 0 ? angle : 0),
|
||||
min = angleMin < angleMax ? angleMin : angleMax,
|
||||
max = angleMax > angleMin ? angleMax : angleMin,
|
||||
|
@ -411,8 +411,8 @@ var Common = require('../core/Common');
|
|||
} else {
|
||||
// otherwise use relative angle
|
||||
angleDelta = Math.atan2(
|
||||
angleNormal.x * delta.y * deltaScale - angleNormal.y * delta.x * deltaScale,
|
||||
angleNormal.x * delta.x * deltaScale + angleNormal.y * delta.y * deltaScale
|
||||
angleNormal.x * delta.y * direction - angleNormal.y * delta.x * direction,
|
||||
angleNormal.x * delta.x * direction + angleNormal.y * delta.y * direction
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue