Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2.x] add JsonSerializable to Box classes #127

Merged
merged 1 commit into from
Jan 3, 2025
Merged

Conversation

saibotk
Copy link
Member

@saibotk saibotk commented Jan 3, 2025

Box classes now implement JsonSerializable and serialize to float arrays, which is a common format in frontend libraries.

Fixes #36

@saibotk saibotk requested a review from ahawlitschek January 3, 2025 16:05
@saibotk saibotk self-assigned this Jan 3, 2025
@saibotk saibotk changed the title feat(box): add JsonSerializable to Box classes [2.x] add JsonSerializable to Box classes Jan 3, 2025
Box classes now implement `JsonSerializable` and serialize to float arrays, which is a common format in frontend libraries.

Fixes #36
@saibotk saibotk linked an issue Jan 3, 2025 that may be closed by this pull request
@saibotk saibotk merged commit f18a3e7 into main Jan 3, 2025
13 checks passed
@saibotk saibotk deleted the box-serializable branch January 3, 2025 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Box2D & Box3D aren't json serializable
2 participants