Skip to content

v1.1.0

Choose a tag to compare

@Bitslayn Bitslayn released this 19 Aug 01:47
· 7 commits to main since this release

TLDR; 70% performance improvement, new applyForce function, and prepping support for player skulls

Made several changes to improve performance:

  • Localized math functions and some common vectors/matrices
  • Store variables locally while working with them instead of indexing spring table several times
  • Converted vector math to using symbols
  • Build transformation matrix in tick, rather than every frame, and lerp the matrix in render
  • Use :copy() instead of creating vectors and matrices from scratch

Feature changes

  • velStrength can now be set to nil (defaults to 1 when creating a spring). Setting this to nil will disable checking entity velocity
  • Added entity config which defaults to the avatar entity. This can be set to another entity, namely the entity holding your player skull if a spring is used on a player skull item model