Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@quenty/spring

Package Overview
Dependencies
Maintainers
1
Versions
128
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@quenty/spring

Spring implementation for Roblox

  • 0.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
876
decreased by-21.72%
Maintainers
1
Weekly downloads
 
Created
Source

Spring

A physical model of a spring, useful in many applications. Properties only evaluate upon index making this model good for lazy applications

API

Spring = Spring.new(number position) Creates a new spring in 1D Spring = Spring.new(Vector3 position) Creates a new spring in 3D

Spring.Position Returns the current position Spring.Velocity Returns the current velocity Spring.Target Returns the target Spring.Damper Returns the damper Spring.Speed Returns the speed

Spring.Target = number/Vector3 Sets the target Spring.Position = number/Vector3 Sets the position Spring.Velocity = number/Vector3 Sets the velocity Spring.Damper = number [0, 1] Sets the spring damper, defaults to 1 Spring.Speed = number [0, infinity) Sets the spring speed, defaults to 1

Spring:TimeSkip(number DeltaTime) Instantly skips the spring forwards by that amount of now Spring:Impulse(number/Vector3 velocity) Impulses the spring, increasing velocity by the amount given

Visualization

by Defaultio: https://www.desmos.com/calculator/hn2i9shxbz

Keywords

FAQs

Package last updated on 08 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc