Hi all! This tool is super cool- been messing around with it and was able to create a really cool main page even though I am new to both Three JS, Unity, and 3d modeling in general. Wondering if anyone has an example or any tips for implementing the awesome scroll effects that we can see on the main https://needle.tools page. Thanks
Hello @ilaffey the code this is in the modules repository. You need Unity >= 2022 for using the Splines package and can use that to move your camera (or anything) along a spline: GitHub - needle-tools/needle-engine-modules
For the website we controlled that from a timeline in Unity (scrolling the page did just set the timeline time). We’ll have a sample for something similar (controlling a timline by scrolling the page) when the next update comes out
Trying to import { SplineWalker } from ‘splines’ gives [plugin:vite:import-analysis] Failed to resolve entry for package "splines". The package may have incorrect main/module/exports specified in its package.json.
Great. I think in the website we used a modified version of that - not exactly the script in modules. I need to backport that at some point. Right now I would recommend you copy the SplineWalker in your own project (maybe rename it) and edit it to suit your needs
In the project the splinewalker just has a speed setting and it interpolates through the spline autonomously. In the website we exposed a field to animate a point on the spline from within unity.