Skip to content
This repository has been archived by the owner on Feb 10, 2023. It is now read-only.

Commit

Permalink
feat(cannon): use pmndrs cannon worker api
Browse files Browse the repository at this point in the history
  • Loading branch information
nartc committed Apr 11, 2022
1 parent dc44e22 commit b5a83fa
Show file tree
Hide file tree
Showing 30 changed files with 472 additions and 1,788 deletions.
5 changes: 3 additions & 2 deletions libs/cannon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
"access": "public"
},
"peerDependencies": {
"@angular/common": "^13.2.0",
"@angular/core": "^13.2.0"
"@angular/common": "^13.0.0",
"@angular/core": "^13.0.0"
},
"dependencies": {
"@pmndrs/cannon-worker-api": "~2.1.0",
"cannon-es": "~0.19.0",
"cannon-es-debugger": "~1.0.0",
"tslib": "^2.3.0"
Expand Down
80 changes: 67 additions & 13 deletions libs/cannon/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,70 @@
export * from './lib/physics';
export * from './lib/physics.store';

export * from './lib/models/api';
export * from './lib/models/body';
export * from './lib/models/types';
export * from './lib/models/constraints';
export * from './lib/models/physics-state';
export * from './lib/models/subscription-names';
export * from './lib/models/messages';
export * from './lib/models/prop-value';
export * from './lib/models/atomic';
export * from './lib/models/vector';

export { default as propsToBody } from './lib/utils/props-to-body';
export * from './lib/utils/worker';
export type {
AtomicName,
AtomicProps,
BodyProps,
BodyPropsArgsRequired,
BodyShapeType,
BoxProps,
Broadphase,
Buffers,
CannonMessage,
CannonMessageBody,
CannonMessageMap,
CannonMessageProps,
CannonWebWorker,
CollideBeginEvent,
CollideEndEvent,
CollideEvent,
CompoundBodyProps,
ConeTwistConstraintOpts,
ConstraintOptns,
ConstraintTypes,
ConvexPolyhedronArgs,
ConvexPolyhedronProps,
CylinderArgs,
CylinderProps,
DistanceConstraintOpts,
HeightfieldArgs,
HeightfieldProps,
HingeConstraintOpts,
IncomingWorkerMessage,
LockConstraintOpts,
Observation,
ParticleProps,
PlaneProps,
PointToPointConstraintOpts,
PropValue,
Quad,
RayhitEvent,
RayMode,
RayOptions,
Refs,
SetOpName,
ShapeType,
Solver,
SphereArgs,
SphereProps,
SpringOptns,
StepProps,
Subscription,
SubscriptionName,
Subscriptions,
SubscriptionTarget,
TrimeshArgs,
TrimeshProps,
Triplet,
VectorName,
VectorProps,
WheelInfoOptions,
WorkerCollideBeginEvent,
WorkerCollideEndEvent,
WorkerCollideEvent,
WorkerEventMessage,
WorkerFrameMessage,
WorkerRayhitEvent,
WorldPropName,
WorldProps,
} from '@pmndrs/cannon-worker-api';
41 changes: 0 additions & 41 deletions libs/cannon/src/lib/models/api.ts

This file was deleted.

35 changes: 0 additions & 35 deletions libs/cannon/src/lib/models/atomic.ts

This file was deleted.

66 changes: 0 additions & 66 deletions libs/cannon/src/lib/models/body.ts

This file was deleted.

1 change: 0 additions & 1 deletion libs/cannon/src/lib/models/broadphase.ts

This file was deleted.

1 change: 0 additions & 1 deletion libs/cannon/src/lib/models/buffers.ts

This file was deleted.

3 changes: 0 additions & 3 deletions libs/cannon/src/lib/models/callback-by-type.ts

This file was deleted.

86 changes: 0 additions & 86 deletions libs/cannon/src/lib/models/constraints.ts

This file was deleted.

8 changes: 0 additions & 8 deletions libs/cannon/src/lib/models/default-contact-material.ts

This file was deleted.

Loading

0 comments on commit b5a83fa

Please sign in to comment.