garbo-succus / r3f-control-kit

Composable camera controls for react-three-fiber
20 stars 1 forks source link

Animation #2

Open neftaly opened 1 year ago

neftaly commented 1 year ago

Allow basic camera animation by adding react-spring or similar to the OrbitCamera component, behind a config flag such as animation: 'spring'.

In the future something like updatePosition({origin, coords, animation}) can be used for camera transitions.

neftaly commented 1 year ago

Animation is now possible through update streams, just need to add a demo to the docs.

neftaly commented 10 months ago

Declarative aimation will be supported using a wrapper component, which is provided with camera state, destination, and an animation method. Custom animations will likely be handled by providing an animator function but not 100% on this yet.