1.0.1 • Published 1 year ago

com.lvl3mage.interpolation v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Interpolation Package

This package offers a collection of interpolation utilities for Unity projects.

Features

  • Frame-independent decay for smooth transitions between values.

Requirements

  • Unity 2021.3 or later

Installation

To use the Interpolation package in your project, import the com.Lvl3Mage.interpolation package.

Usage

The Decay class provides static methods to smoothly interpolate between two values, angles, or vectors over time, independent of the frame rate. This is particularly useful for animations and movement smoothing.

Example usage:

float newValue = Decay.To(currentValue, targetValue, speed, Time.deltaTime);
1.0.1

1 year ago

1.0.0

1 year ago