Skip to content

Commit

Permalink
build v1-beta.14
Browse files Browse the repository at this point in the history
  • Loading branch information
shakiba committed Aug 26, 2023
1 parent ae24904 commit 4a54360
Show file tree
Hide file tree
Showing 120 changed files with 1,903 additions and 1,838 deletions.
22 changes: 18 additions & 4 deletions dist/planck-with-testbed.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,12 +223,16 @@ declare class AABB {
static combinedPerimeter(a: AABBValue, b: AABBValue): number;
}
interface RotValue {
/** sin(angle) */
s: number;
/** cos(angle) */
c: number;
}
declare function Rot(angle?: number | RotValue): Rot;
declare class Rot {
/** sin(angle) */
s: number;
/** cos(angle) */
c: number;
/** Initialize from an angle in radians. */
constructor(angle?: number | RotValue);
Expand Down Expand Up @@ -1761,9 +1765,12 @@ interface WorldDef {
* @param fixture The fixture hit by the ray
* @param point The point of initial intersection
* @param normal The normal vector at the point of intersection
* @param fraction
* @param fraction The fraction along the ray at the point of intersection
*
* @return -1 to filter, 0 to terminate, fraction to clip the ray for closest hit, 1 to continue
* @return `-1` to ignore the current fixture and continue
* @return `0` to terminate the ray cast
* @return `fraction` to clip the raycast at current point
* @return `1` don't clip the ray and continue
*/
type WorldRayCastCallback = (fixture: Fixture, point: Vec2, normal: Vec2, fraction: number) => number;
/**
Expand Down Expand Up @@ -4442,11 +4449,15 @@ declare namespace planck {
static combinedPerimeter(a: AABBValue, b: AABBValue): number;
}
interface RotValue {
/** sin(angle) */
s: number;
/** cos(angle) */
c: number;
}
class Rot {
/** sin(angle) */
s: number;
/** cos(angle) */
c: number;
/** Initialize from an angle in radians. */
constructor(angle?: number | RotValue);
Expand Down Expand Up @@ -5995,9 +6006,12 @@ declare namespace planck {
* @param fixture The fixture hit by the ray
* @param point The point of initial intersection
* @param normal The normal vector at the point of intersection
* @param fraction
* @param fraction The fraction along the ray at the point of intersection
*
* @return -1 to filter, 0 to terminate, fraction to clip the ray for closest hit, 1 to continue
* @return `-1` to ignore the current fixture and continue
* @return `0` to terminate the ray cast
* @return `fraction` to clip the raycast at current point
* @return `1` don't clip the ray and continue
*/
type WorldRayCastCallback = (fixture: Fixture, point: Vec2, normal: Vec2, fraction: number) => number;
/**
Expand Down
2 changes: 1 addition & 1 deletion dist/planck-with-testbed.d.ts.map

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion dist/planck-with-testbed.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Planck.js v1.0.0-beta.13
* Planck.js v1.0.0-beta.14
* @license The MIT license
* @copyright Copyright (c) 2021 Erin Catto, Ali Shakiba
*
Expand Down Expand Up @@ -3326,18 +3326,21 @@
};
Fixture.prototype.setFilterGroupIndex = function (groupIndex) {
this.m_filterGroupIndex = groupIndex;
this.refilter();
};
Fixture.prototype.getFilterCategoryBits = function () {
return this.m_filterCategoryBits;
};
Fixture.prototype.setFilterCategoryBits = function (categoryBits) {
this.m_filterCategoryBits = categoryBits;
this.refilter();
};
Fixture.prototype.getFilterMaskBits = function () {
return this.m_filterMaskBits;
};
Fixture.prototype.setFilterMaskBits = function (maskBits) {
this.m_filterMaskBits = maskBits;
this.refilter();
};
/**
* Call this if you want to establish collision that was previously disabled by
Expand Down
2 changes: 1 addition & 1 deletion dist/planck-with-testbed.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/planck-with-testbed.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/planck-with-testbed.min.js.map

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion dist/planck-with-testbed.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Planck.js v1.0.0-beta.13
* Planck.js v1.0.0-beta.14
* @license The MIT license
* @copyright Copyright (c) 2021 Erin Catto, Ali Shakiba
*
Expand Down Expand Up @@ -3320,18 +3320,21 @@ var Fixture = /** @class */ (function () {
};
Fixture.prototype.setFilterGroupIndex = function (groupIndex) {
this.m_filterGroupIndex = groupIndex;
this.refilter();
};
Fixture.prototype.getFilterCategoryBits = function () {
return this.m_filterCategoryBits;
};
Fixture.prototype.setFilterCategoryBits = function (categoryBits) {
this.m_filterCategoryBits = categoryBits;
this.refilter();
};
Fixture.prototype.getFilterMaskBits = function () {
return this.m_filterMaskBits;
};
Fixture.prototype.setFilterMaskBits = function (maskBits) {
this.m_filterMaskBits = maskBits;
this.refilter();
};
/**
* Call this if you want to establish collision that was previously disabled by
Expand Down
2 changes: 1 addition & 1 deletion dist/planck-with-testbed.mjs.map

Large diffs are not rendered by default.

22 changes: 18 additions & 4 deletions dist/planck.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,12 +223,16 @@ declare class AABB {
static combinedPerimeter(a: AABBValue, b: AABBValue): number;
}
interface RotValue {
/** sin(angle) */
s: number;
/** cos(angle) */
c: number;
}
declare function Rot(angle?: number | RotValue): Rot;
declare class Rot {
/** sin(angle) */
s: number;
/** cos(angle) */
c: number;
/** Initialize from an angle in radians. */
constructor(angle?: number | RotValue);
Expand Down Expand Up @@ -1761,9 +1765,12 @@ interface WorldDef {
* @param fixture The fixture hit by the ray
* @param point The point of initial intersection
* @param normal The normal vector at the point of intersection
* @param fraction
* @param fraction The fraction along the ray at the point of intersection
*
* @return -1 to filter, 0 to terminate, fraction to clip the ray for closest hit, 1 to continue
* @return `-1` to ignore the current fixture and continue
* @return `0` to terminate the ray cast
* @return `fraction` to clip the raycast at current point
* @return `1` don't clip the ray and continue
*/
type WorldRayCastCallback = (fixture: Fixture, point: Vec2, normal: Vec2, fraction: number) => number;
/**
Expand Down Expand Up @@ -4442,11 +4449,15 @@ declare namespace planck {
static combinedPerimeter(a: AABBValue, b: AABBValue): number;
}
interface RotValue {
/** sin(angle) */
s: number;
/** cos(angle) */
c: number;
}
class Rot {
/** sin(angle) */
s: number;
/** cos(angle) */
c: number;
/** Initialize from an angle in radians. */
constructor(angle?: number | RotValue);
Expand Down Expand Up @@ -7929,9 +7940,12 @@ declare namespace planck {
* @param fixture The fixture hit by the ray
* @param point The point of initial intersection
* @param normal The normal vector at the point of intersection
* @param fraction
* @param fraction The fraction along the ray at the point of intersection
*
* @return -1 to filter, 0 to terminate, fraction to clip the ray for closest hit, 1 to continue
* @return `-1` to ignore the current fixture and continue
* @return `0` to terminate the ray cast
* @return `fraction` to clip the raycast at current point
* @return `1` don't clip the ray and continue
*/
type WorldRayCastCallback = (fixture: Fixture, point: Vec2, normal: Vec2, fraction: number) => number;
/**
Expand Down
2 changes: 1 addition & 1 deletion dist/planck.d.ts.map

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion dist/planck.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Planck.js v1.0.0-beta.13
* Planck.js v1.0.0-beta.14
* @license The MIT license
* @copyright Copyright (c) 2021 Erin Catto, Ali Shakiba
*
Expand Down Expand Up @@ -3326,18 +3326,21 @@
};
Fixture.prototype.setFilterGroupIndex = function (groupIndex) {
this.m_filterGroupIndex = groupIndex;
this.refilter();
};
Fixture.prototype.getFilterCategoryBits = function () {
return this.m_filterCategoryBits;
};
Fixture.prototype.setFilterCategoryBits = function (categoryBits) {
this.m_filterCategoryBits = categoryBits;
this.refilter();
};
Fixture.prototype.getFilterMaskBits = function () {
return this.m_filterMaskBits;
};
Fixture.prototype.setFilterMaskBits = function (maskBits) {
this.m_filterMaskBits = maskBits;
this.refilter();
};
/**
* Call this if you want to establish collision that was previously disabled by
Expand Down
2 changes: 1 addition & 1 deletion dist/planck.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/planck.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/planck.min.js.map

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion dist/planck.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Planck.js v1.0.0-beta.13
* Planck.js v1.0.0-beta.14
* @license The MIT license
* @copyright Copyright (c) 2021 Erin Catto, Ali Shakiba
*
Expand Down Expand Up @@ -3320,18 +3320,21 @@ var Fixture = /** @class */ (function () {
};
Fixture.prototype.setFilterGroupIndex = function (groupIndex) {
this.m_filterGroupIndex = groupIndex;
this.refilter();
};
Fixture.prototype.getFilterCategoryBits = function () {
return this.m_filterCategoryBits;
};
Fixture.prototype.setFilterCategoryBits = function (categoryBits) {
this.m_filterCategoryBits = categoryBits;
this.refilter();
};
Fixture.prototype.getFilterMaskBits = function () {
return this.m_filterMaskBits;
};
Fixture.prototype.setFilterMaskBits = function (maskBits) {
this.m_filterMaskBits = maskBits;
this.refilter();
};
/**
* Call this if you want to establish collision that was previously disabled by
Expand Down
2 changes: 1 addition & 1 deletion dist/planck.mjs.map

Large diffs are not rendered by default.

Loading

0 comments on commit 4a54360

Please sign in to comment.