版本发布 8
Fix dependency configuration
Fibbo is now a framework, based on Vite.
Fibbo is now a framework, based on Vite.
Fibbo is now a framework, based on Vite.
Fibbo is now a framework, based on Vite.
### 🚀 Features - Polyhedrons now support the `color` option, along with a dedicated getter and setter to modify the material color. ### 🏡 Chore - Configured [vitepress-plugin-llms](https://github.com/okineadev/vitepress-plugin-llms) to make the doc LLM-friendly - Add [`llms.txt`](https://fibbo.dev/llms.txt) and [`llms-full.txt`](https://fibbo.dev/llms-full.txt) - Keep markdown versions of the documentation so crawling for LLMs is easier ### ❤️ Thank You - @Gugustinette - @okineadev
### 🚧 Breaking changes The scene is now an optional constructor that is included in the `options` argument for EVERY constructor. This means this : ```ts new FCuboid(scene, {...options}) ``` Can now be written like this (the scene will automatically be infered from context) : ```ts new FCuboid({...options}) ``` You can still pass the scene through `options` if needed : ```ts new FCuboid({ scene: scene ...options }) ``` ### ❤️ Thank You - @Gugustinette
### 🚧 Breaking changes - You can now add multiple controllers to a component, which mean the new way to attach a controller to a component is : `component.addController(new Controller())` ### 🚀 Features - Add a pipeline system - Fibbo now uses an internal system called pipelines, which abstract the concept of thread to handle different process separately, at different framerates - The main pipeline runs your end logic (components and controllers `frame` method), at nearly 60 FPS - The physic pipeline steps the physic engine, at exactly 30 FPS - The render pipeline handle the rendering (either Three.js or Pixi.js part) at max FPS, using interpolation with the physic objects to keep the rendering smooth ### 🩹 Fixes - The simulation no longer runs in inactive tabs, which will prevent objects of going through each other because of big time steps ### ❤️ Thank You - @Gugustinette - @neomodulo