{"id":"dervexhero/advancedspring","name":"advancedspring","scope":"dervexhero","platform":"roblox","description":"Advanced Spring lets you create spring class for every major Roblox & Luau datatype","version":"1.0.0","latest":"1.0.0","versions":["1.0.0"],"license":"Apache-2.0","licenseRating":"safe","licenseCaveats":["Modified files must carry a notice of changes. If the package ships a NOTICE file, its attributions must be preserved."],"licenseVerified":true,"dependencies":{},"integrity":"aeedcf94a4d95e28e3fd39e0f9e2710b8687dad9f91493ffed3b60fd25015e1d","likes":0,"downloads":0,"install":"forest install dervexhero/advancedspring","url":"https://forest.dev/p/roblox/dervexhero/advancedspring","files":"https://api.forest.dev/ai/package/roblox/dervexhero/advancedspring/files","readme":"# Advanced Spring\nAdvanced Spring lets you create spring class for every major Roblox & Luau datatype\n\n## About\nSupported datatypes:  `boolean`, `number`, `BrickColor`, `CFrame`, `Color3`, `ColorSequence`, `NumberRange`, `NumberSequence`, `Rect`, `UDim`, `UDim2`, `Vector2`, `Vector3`. You can set **initial position**, **damping ratio** and **frequency** when creating new spring instance or by creating config file or by changing `DEFAULT_SETTINGS`.\n\n## API Usage\n```lua\nlocal Spring = require(path.to.this.module)\n\n-- Creates new spring class with optional initial position and settings\nlocal spring = Spring.new(Vector3.new())\n\n-- Sets new spring goal\nspring:Set(Vector3.new(4, 2, 0))\n\n-- Updates spring by delta seconds\nspring:Step(delta)\n\n-- Returns current spring position\npart.Position = spring:Get()\n\n-- Sets new goal, updates spring and returns current position\npart.Position = spring:All(Vector3.new(4, 2, 0), delta)\n```\n\n## Limitations\n* CFrame - only position is supported (it may change in the future)\n* ColorSequence & NumberSequence - only first and last keypoints are supported\n\n## Credits\nPart of this code was written by @Fraktality","readmeTruncated":false}