Skip to content

v3.0.0 - new features & improvements

Compare
Choose a tag to compare
@tomaspietravallo tomaspietravallo released this 23 Dec 02:05
· 75 commits to main since this release
8d4a002

This release features many changes that fix and improve current code, and add new features.

New:

  • Quaternion: This class represents 3D spatial rotations, and provides an interface to work with them.
  • Object3D: This class provides an easy interface to Spark's SceneObjects.
  • Pool: This class allows easy dynamic instance spawning.
  • World.onNextTick provides an event that is triggered on the next frame.
  • Plugins: Plugins allow the creating of external files that are loaded by Volts to extend its capabilities. An example of this is the oimo. plugin, which gives the Object3D class RigidBody physics capabilities.

Improvements:

  • The snapshot system has been changed and now allows for the snapshot-ing of QuaternionSignals.
  • Concurrent promises. Now Volts can perform many asynchronous tasks at once.
  • Better error and log messages.
  • Writeable Vectors and Quaternions can be created by simply accessing the signal property.
  • New functions have been added to Vector, including: Vector.fromSignal, Vector.random2D, Vector.random3D, setMag, toArray, setSignalComponents, disposeSignalResources.

Fixes/ other changes:

  • State.setKey is now State.setValue.
  • Single assets are not casted to arrays anymore

Notes:

  • Object3D.makeRigidBody and the Oimo physics plugin are still beta capabilities. Feedback is, as always, welcomed. #6

There are many bug fixes which are not listed above.