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

@quenty/acceltween

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@quenty/acceltween

AccelTween implementation for Roblox

  • 1.0.3-canary.199.34c89f1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
80
decreased by-89.16%
Maintainers
1
Weekly downloads
 
Created
Source

AccelTween

Documentation Discord Build and release status

Provides a means to, with both a continuous position and velocity, accelerate from its current position to a target position in minimum time given a maximum acceleration.

Installation

npm install @quenty/acceltween --save

API

AccelTween = AccelTween.new(number maxaccel = 1) maxaccel is the maximum acceleration applied to reach its target.

number AccelTween.p Returns the current position. number AccelTween.v Returns the current velocity. number AccelTween.a Returns the maximum acceleration. number AccelTween.t Returns the target position. number AccelTween.rtime Returns the remaining time before the AccelTween attains the target.

AccelTween.p = number Sets the current position. AccelTween.v = number Sets the current velocity. AccelTween.a = number Sets the maximum acceleration. AccelTween.t = number Sets the target position. AccelTween.pt = number Sets the current and target position, and sets the velocity to 0.

Keywords

FAQs

Package last updated on 31 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