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

v0.0.10: refactor API, internals, testing #24

Closed
Gugustinette opened this issue Oct 1, 2024 · 0 comments · Fixed by #23
Closed

v0.0.10: refactor API, internals, testing #24

Gugustinette opened this issue Oct 1, 2024 · 0 comments · Fixed by #23
Assignees

Comments

@Gugustinette
Copy link
Contributor

Gugustinette commented Oct 1, 2024

DONE

  • Refactor the API to hide every third-party related objects as __INTERNALS__
    • physic system : hide every Rapier object
    • components : hide meshes, textures, containers,...
    • 3d camera : hide Three.js camera
  • Refactor transform system
    • FTransform(which correspond to the transform property) should now be used directly to modify attached-object (component, light, camera, colliders, rigidbodies,...) transforms
    • Wrappers like initCollider or initRigidBody now are short-hand to "create then attach object"
    • Introduce FVector3d and FVector2d types for consistency
    • Everything should be reactive
  • Configure and create tests
    • Configure coverage
  • Add onLoaded callback feature on all FComponents
  • Add autoLoop option on FScene to turn off automatic frame compute each frame
    • This is useful for test environment but will also be used in the future for creating debug features (manipulating the scene frame per frame...)
  • Components and lights are now added to scene by default
    • Add addToScene option on FComponent to turn off adding components to the scene automatically
  • Normalize frame and onFrame behavior on FComponent and FScene
    • onFrame takes a callback function that will be called each frame
    • frame computes the new properties for the object on a new frame
  • Add FRigidBodyType enum to replace the RAPIER one
  • Update documentation
@Gugustinette Gugustinette converted this from a draft issue Oct 1, 2024
@Gugustinette Gugustinette linked a pull request Oct 1, 2024 that will close this issue
@Gugustinette Gugustinette self-assigned this Oct 1, 2024
@Gugustinette Gugustinette added enhancement New feature or request and removed enhancement New feature or request labels Oct 1, 2024
@Gugustinette Gugustinette changed the title refactor: physics refactor: physic, internals, testing Oct 13, 2024
@Gugustinette Gugustinette changed the title refactor: physic, internals, testing v0.1: refactor API, internals, testing Oct 15, 2024
@Gugustinette Gugustinette changed the title v0.1: refactor API, internals, testing v0.0.10: refactor API, internals, testing Oct 21, 2024
@github-project-automation github-project-automation bot moved this from In Progress to Merged in Fibbo Oct 22, 2024
@Gugustinette Gugustinette moved this from Merged to Released in Fibbo Oct 22, 2024
@Gugustinette Gugustinette removed this from Fibbo Oct 22, 2024
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 a pull request may close this issue.

1 participant