Skip to content

Commit

Permalink
build v1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
shakiba committed Dec 27, 2024
1 parent ce1c486 commit 1c50a3f
Show file tree
Hide file tree
Showing 20 changed files with 3,725 additions and 2,359 deletions.
5 changes: 0 additions & 5 deletions .changeset/breezy-eyes-obey.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/gentle-colts-hunt.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/heavy-kings-hide.md

This file was deleted.

11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# planck

## 1.3.0

### Minor Changes

- bb9bb87: Testbed rendering rewrite
- 56193e7: Add DataDriver (experimental for demo use-case)

### Patch Changes

- ce1c486: No pointer interaction when mouseForce===0

## 1.2.0

### Minor Changes
Expand Down
15 changes: 15 additions & 0 deletions dist/planck-with-testbed.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4223,6 +4223,21 @@ export declare const internal: {
toString(newline?: string): string;
};
};
export interface DataDriverListener<D, R> {
enter: (d: D) => R | null;
exit: (d: D, ref: R) => void;
update: (d: D, ref: R) => void;
}
/**
* @experimental
*
* DataDriver is used it to create, update and destroy physics entities based on game objects.
*/
export declare class DataDriver<D extends object, R> {
constructor(key: (d: D) => string, listener: DataDriverListener<D, R>);
update(data: (D | null)[]): void;
ref(d: D): R;
}

export {
Body$1 as Body,
Expand Down
Loading

0 comments on commit 1c50a3f

Please sign in to comment.