Socket
Socket
Sign inDemoInstall

@quenty/acceltween

Package Overview
Dependencies
0
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @quenty/acceltween

AccelTween implementation for Roblox


Version published
Maintainers
1
Install size
9.71 kB
Created

Readme

Source

AccelTween

Documentation status 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

Last updated on 09 May 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc