@flighthq/physics2d-abi 0.5.1-next.903.f434bc2 → 0.5.1-next.905.5fbf787
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -13,5 +13,5 @@ Import the supported application-facing API from `@flighthq/physics2d-abi`. The
|
|
|
13
13
|
This package is part of the locked-version Flight SDK graph. Applications may instead install and import `@flighthq/sdk` when package-level tree shaking is sufficient.
|
|
14
14
|
|
|
15
15
|
- [Flight project](https://github.com/flighthq/flight)
|
|
16
|
-
- [Source for @flighthq/physics2d-abi@0.5.1-next.
|
|
17
|
-
- [License](https://github.com/flighthq/flight/blob/
|
|
16
|
+
- [Source for @flighthq/physics2d-abi@0.5.1-next.905.5fbf787](https://github.com/flighthq/flight/tree/5fbf7874064c384307542d68b4dcb6a895ff0dcf/packages/physics2d-abi)
|
|
17
|
+
- [License](https://github.com/flighthq/flight/blob/5fbf7874064c384307542d68b4dcb6a895ff0dcf/LICENSE.md)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flighthq/physics2d-abi",
|
|
3
|
-
"version": "0.5.1-next.
|
|
3
|
+
"version": "0.5.1-next.905.5fbf787",
|
|
4
4
|
"author": "Joshua Granick and other contributors",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"clean:dist": "tsx ../../scripts/clean-package-dist.ts"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@flighthq/collision": "0.5.1-next.
|
|
42
|
-
"@flighthq/entity": "0.5.1-next.
|
|
43
|
-
"@flighthq/physics2d": "0.5.1-next.
|
|
44
|
-
"@flighthq/types": "0.5.1-next.
|
|
41
|
+
"@flighthq/collision": "0.5.1-next.905.5fbf787",
|
|
42
|
+
"@flighthq/entity": "0.5.1-next.905.5fbf787",
|
|
43
|
+
"@flighthq/physics2d": "0.5.1-next.905.5fbf787",
|
|
44
|
+
"@flighthq/types": "0.5.1-next.905.5fbf787"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"typescript": "^5.3.0"
|
|
@@ -9,6 +9,11 @@ import {
|
|
|
9
9
|
createPhysics2DAbiJointBuffer,
|
|
10
10
|
createPhysics2DAbiQueryBuffer,
|
|
11
11
|
getPhysics2DAbiCommandBufferRemainingByteLength,
|
|
12
|
+
initializePhysics2DAbiBodyBuffer,
|
|
13
|
+
initializePhysics2DAbiContactBuffer,
|
|
14
|
+
initializePhysics2DAbiExecutionResult,
|
|
15
|
+
initializePhysics2DAbiJointBuffer,
|
|
16
|
+
initializePhysics2DAbiQueryBuffer,
|
|
12
17
|
} from './physics2DAbiBuffer';
|
|
13
18
|
import { writePhysics2DAbiSetGravityCommand } from './physics2DAbiCommand';
|
|
14
19
|
import {
|
|
@@ -119,3 +124,32 @@ describe('getPhysics2DAbiCommandBufferRemainingByteLength', () => {
|
|
|
119
124
|
expect(getPhysics2DAbiCommandBufferRemainingByteLength(buffer)).toBe(before - 32);
|
|
120
125
|
});
|
|
121
126
|
});
|
|
127
|
+
describe('initializePhysics2DAbiBodyBuffer', () => {
|
|
128
|
+
it('is the construction initializer of createPhysics2DAbiBodyBuffer', () => {
|
|
129
|
+
expect(typeof initializePhysics2DAbiBodyBuffer).toBe('function');
|
|
130
|
+
});
|
|
131
|
+
});
|
|
132
|
+
|
|
133
|
+
describe('initializePhysics2DAbiContactBuffer', () => {
|
|
134
|
+
it('is the construction initializer of createPhysics2DAbiContactBuffer', () => {
|
|
135
|
+
expect(typeof initializePhysics2DAbiContactBuffer).toBe('function');
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
describe('initializePhysics2DAbiExecutionResult', () => {
|
|
140
|
+
it('is the construction initializer of createPhysics2DAbiExecutionResult', () => {
|
|
141
|
+
expect(typeof initializePhysics2DAbiExecutionResult).toBe('function');
|
|
142
|
+
});
|
|
143
|
+
});
|
|
144
|
+
|
|
145
|
+
describe('initializePhysics2DAbiJointBuffer', () => {
|
|
146
|
+
it('is the construction initializer of createPhysics2DAbiJointBuffer', () => {
|
|
147
|
+
expect(typeof initializePhysics2DAbiJointBuffer).toBe('function');
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
|
|
151
|
+
describe('initializePhysics2DAbiQueryBuffer', () => {
|
|
152
|
+
it('is the construction initializer of createPhysics2DAbiQueryBuffer', () => {
|
|
153
|
+
expect(typeof initializePhysics2DAbiQueryBuffer).toBe('function');
|
|
154
|
+
});
|
|
155
|
+
});
|
|
@@ -26,6 +26,7 @@ import {
|
|
|
26
26
|
writePhysics2DAbiSetJointCommand,
|
|
27
27
|
} from './physics2DAbiCommand';
|
|
28
28
|
import { Physics2DAbiBodyValue, Physics2DAbiJointFlag } from './physics2DAbiLayout';
|
|
29
|
+
import { initializeReferencePhysics2DAbi } from './referencePhysics2DAbi';
|
|
29
30
|
|
|
30
31
|
const MATERIAL = { density: 1, friction: 0.3, restitution: 0 };
|
|
31
32
|
|
|
@@ -269,3 +270,8 @@ describe('createReferencePhysics2DAbi', () => {
|
|
|
269
270
|
expect(joints.count).toBe(1);
|
|
270
271
|
});
|
|
271
272
|
});
|
|
273
|
+
describe('initializeReferencePhysics2DAbi', () => {
|
|
274
|
+
it('is the construction initializer of createReferencePhysics2DAbi', () => {
|
|
275
|
+
expect(typeof initializeReferencePhysics2DAbi).toBe('function');
|
|
276
|
+
});
|
|
277
|
+
});
|