Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add `<Physics />` and `<RigidBody />` components * feat: world and rigid boxy * chore: add prettier for coding harmony * chore(config): correct `vite` configuration ### Desccription - Add missing `name` & `description` from package.json - Format vite config file * feat: add `trimesh` supporrt ### Description - Uncomment & implement `trimesh` support - Add `heightfield` todo comment Co-Authored-By: Alvaro Saburido <alvaro.saburido@gmail.com> * chore(config): add bracket & endline prettier support * refactor: better access to rapier context ### Description - Correct `world` step usage - Correctly update the `timestep` - Use correct type for `useRapierContext` - Improve methods documentation Co-Authored-By: Alvaro Saburido <alvaro.saburido@gmail.com> * chore(deps): install packages with `pnpm` * refactor(architecture): better structure separation ### Description - Move `vue` components at `./src/components/` - Move all types/interfaces at `./src/types` - Add `RigidBodyType` type (containing the supported rigidBodyDesc types) - Add `RigidBodyProps` interface - Add `InjectableRapierContext` interface - Add `PhysicsProps` interface - Add `ColliderShape` type - Move helper/utils at `./src/utils/` - Rename `createColliderDesc` to `createColliderDesc`, and return a `ColliderDesc` - Rename `createRigidBody` to `createRigidBodyDesc` and return a `RigidBodyDesc` - Add a `./src/constants/` sub folder Co-Authored-By: Alvaro Saburido <alvaro.saburido@gmail.com> * feat: delegate responsibilities to sub-utils ### Description - Add `createRigiBody` util - Add `CreateRigidBodyProps` type - `createRigidBodyDesc` need an object now - Add `CreateRigidBodyDescProps` type - `createColliderDesc ` need an object now - Add `CreateColliderDescProps ` type - Add `createCollider` util - Add `CreateColliderProps` type - Add `createColliderFromChildren` util - Add `CreateColliderFromChildrenProps` type - Map received children colliders and update their states * feat: add `hull` collider ### Description - Add `convexHull` colliderDesc support * feat: base of instanced `mesh` support * feat: rigid-body instance Matrix compose support ### Description - Add `instancedMesh` rigid-body position support - Add `instancedMesh` rigid-body rotation support - Make `createRigidBody` export the received `object` - Add `CreateRigidBodyReturnType` - Make `createCollider` export the received `object` - Add `CreateColliderReturnType` * refactor(style): request changes improvements ### description - Remove redundant suffixes - Add missing types to callbacks params Co-Authored-By: Alvaro Saburido <alvaro.saburido@gmail.com> --------- Co-authored-by: Francesco Michelini <hello@francescomichelini.com> Co-authored-by: alvarosabu <alvaro.saburido@gmail.com>
- Loading branch information