mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
Add spring setter
This commit is contained in:
parent
b44b9ef2ba
commit
3b22f6ccf9
4 changed files with 75 additions and 71 deletions
|
|
@ -11,9 +11,15 @@ Returns a new source with a value always moving torwards the input source value.
|
|||
source: () -> T & Animatable,
|
||||
period: number = 1,
|
||||
damping_ratio: number = 1
|
||||
): () -> T
|
||||
): (() -> T, Setter<T>)
|
||||
|
||||
type Animatable = number | CFrame | Color3 | UDim | UDim2 | Vector2 | Vector3 | Rect
|
||||
|
||||
type Setter<T> = ({
|
||||
position: T?,
|
||||
velocity: T?,
|
||||
impulse: T?
|
||||
}) -> ()
|
||||
```
|
||||
|
||||
- **Details**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue