Skip to content

Releases: vanruesc/spatial-controls

v5.0.4

28 Oct 20:38
Compare
Choose a tag to compare

Changelog

Core

  • SpatialControls
    • Fixed a bug in the clone method.

Miscellaneous

  • Updated dependencies.

v5.0.3

05 Oct 16:01
Compare
Choose a tag to compare

Changelog

Core

  • SpatialControls
    • Improved handling of mouse button events.
    • Introduced usage of setPointerCapture.

v5.0.2

01 Oct 22:57
Compare
Choose a tag to compare

Changelog

Managers

  • TranslationManager
    • Fixed translation damping. See f283ab7.

Math

  • ScalarDamper
    • Removed unused lambda parameter from calculateExp function. See b0cf3b8.
    • Minor optimizations.

v5.0.1

30 Sep 22:12
Compare
Choose a tag to compare

Changelog

Core

  • SpatialControls
    • Changed visibility of setPointerLocked method to public.
    • Added setRotationEnabled method.
    • Fixed a bug that limited Action.ROTATE to pointer button bindings.

Strategies

  • Strategy
    • Added optional event parameter.
  • Added RotationStrategy

Miscellaneous

  • Updated dependencies.

v5.0.0

29 Sep 22:52
Compare
Choose a tag to compare

Changelog

Bold text indicates a breaking change.

Core

  • Action
    • Added ROTATE constant.
  • SpatialControls
    • Removed moveTo method.
    • Internal state will now be synchronized with external changes.
    • The method setPosition no longer calls lookAt internally.
    • The method setTarget no longer calls lookAt internally.
    • The method setQuaternion no longer calls lookAt internally.
    • Damping velocities will now be reset when the controls are disabled.
    • Added isEnabled method.

Managers

  • RotationManager & TranslationManager
    • Added resetVelocity method.
  • RotationManager
    • Added getRadius method.
  • TranslationManager
    • Removed moveTo method.

Math

  • ScalarDamper
    • Added resetVelocity method.

Settings

  • Converted KeyBindings into generic Bindings.
  • Damping velocities will now be reset when settings are changed.
  • Settings
    • Pointer button bindings are now configurable via pointerBindings.
  • RotationSettings
    • The minimum and maximum polar angles can now be infinite.

v4.3.2

10 Sep 12:12
Compare
Choose a tag to compare

Changelog

Core

  • SpatialControls
    • Removed preventDefault() call from handlePointerButtonEvent().

v4.3.1

04 Sep 19:45
Compare
Choose a tag to compare

Changelog

Managers

  • RotationManager
    • Fixed a zoom damping bug that caused flickering.

v4.3.0

30 Aug 12:02
Compare
Choose a tag to compare

Changelog

Core & Input

  • Switched to Pointer events.
    • Added PointerType enum.
    • Pointer lock will now only activate if the pointer type is PointerType.MOUSE.

Managers & Settings

  • Implemented damping for rotation, zoom and translation. See #3.
  • Adjusted the rate at which events are dispatched by the translation manager.

Miscellaneous

  • Added ScalarDamper.
  • Updated dependencies.

v4.2.3

30 Jul 22:21
Compare
Choose a tag to compare

Changelog

  • Updated dependencies.

v4.2.2

30 Jun 16:57
Compare
Choose a tag to compare

Changelog

  • Updated dependencies.