Code Monkey home page Code Monkey logo

bevy_utilitarian's Introduction

Crates.io Crates.io CI

Bevy Utilitarian

Contains a varied set of utilities to make bevy programming easier. Currently, mostly geometric, maths and interpolation utilities.

What?

Currently, this library offers:

  • curves module: Parametric curves.

  • steppers module: Dynamic interpolation helpers: used for when you cannot express the change of the value you want to interpolate easily as a parametric curve, such as when using a spring-damper system as an interpolator or when you want to update the interpolation target before it has been reached.

    You simply set the current value, target value and some interpolator-specific parameters (e.g. spring and damping coefficient for spring interpolator, speed for linear interpolator) and call .tick() every frame to update the current value. Using .get() you access the current value.

  • geometric module: Offers PitchYaw and PitchYawClamped types, representing spherical positions (i.e. Euler rotations without the roll field). PitchYaw wraps around the boundary, whereas PitchYawClamped is clamped to the allowable angle ranges. The latter is useful for use in interpolation helpers where you don't want the interpolator to move the current value across the -PI->PI boundary. Specific use case examples of either of these types are: aiming/look direction in first/third person character controllers, look direction parameter for animation (where you don't want the character's head to turn 360 degrees).

  • randomized_values module: Offers RandValue trait and implementations for RandVec3 and RandF32. They are self-contained data types with an ergonomic API for generating random values based on some parameters.

Version table

bevy_utilitarian bevy
0.1 0.12
0.2 0.12
0.3 0.12
0.4 0.13

bevy_utilitarian's People

Contributors

mbrea-c avatar affinator avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.