spatial-controls

3D movement controls.

ZLIB License

Downloads
476
Stars
52
Committers
1

Bot releases are hidden (Show)

spatial-controls - v6.1.1 Latest Release

Published by vanruesc about 1 year ago

Changelog

  • Updated types.
  • Fixed constraints not being applied.
spatial-controls - v6.1.0

Published by vanruesc over 1 year ago

Changelog

  • Fixed pointermove event handling on iOS.
  • Added support for constraints.
  • Added axisWeights to translation settings. See #5.
  • Normalized translation velocity.
spatial-controls - v6.0.2

Published by vanruesc over 1 year ago

Changelog

  • Fixed broken package publish step in CD workflow
spatial-controls - v6.0.1

Published by vanruesc over 1 year ago

Changelog

  • Added enabled setting to RotationSettings

Package

  • Adjusted exports field
spatial-controls - v6.0.0

Published by vanruesc almost 2 years ago

Changelog

Replaced getXYZ/setXYZ methods with accessors:

// Example (old)
const settings = controls.settings;
settings.general.setMode(ControlMode.THIRD_PERSON);
settings.rotation.setSensitivity(2.2);

controls.setPosition(x, y, z);
controls.setPosition(otherPosition);
// Example (new)
const settings = controls.settings;
settings.general.mode = ControlMode.THIRD_PERSON;
settings.rotation.sensitivity = 2.2;

controls.position.set(x, y, z);
controls.position = otherPosition;

Package

  • Added types to exports
  • Enabled strict null checks
  • Changed ts module resolution to NodeNext
  • Raised minimum node version to 0.16.0
spatial-controls - v5.0.8

Published by vanruesc almost 3 years ago

Changelog

Managers

  • RotationManager
    • Fixed a regression in lookAt. See f9451145bb65daa00cd861e40d5b4bfeeb8d6658.
spatial-controls - v5.0.7

Published by vanruesc almost 3 years ago

Changelog

Managers

  • RotationManager
    • Fixed lookAt behaviour in third person mode with pivot offset.

Settings

  • Improved documentation for key and pointer bindings.
spatial-controls - v5.0.6

Published by vanruesc almost 3 years ago

Changelog

Managers

  • RotationManager
    • Fixed pivot offset behaviour.
spatial-controls - v5.0.5

Published by vanruesc almost 3 years ago

Changelog

Updated dependencies.

spatial-controls - v5.0.4

Published by vanruesc almost 3 years ago

Changelog

Core

  • SpatialControls
    • Fixed a bug in the clone method.

Miscellaneous

  • Updated dependencies.
spatial-controls - v5.0.3

Published by vanruesc about 3 years ago

Changelog

Core

  • SpatialControls
    • Improved handling of mouse button events.
    • Introduced usage of setPointerCapture.
spatial-controls - v5.0.2

Published by vanruesc about 3 years ago

Changelog

Managers

  • TranslationManager
    • Fixed translation damping. See f283ab7.

Math

  • ScalarDamper
    • Removed unused lambda parameter from calculateExp function. See b0cf3b8.
    • Minor optimizations.
spatial-controls - v5.0.1

Published by vanruesc about 3 years ago

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.
spatial-controls - v5.0.0

Published by vanruesc about 3 years ago

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.
spatial-controls - v4.3.2

Published by vanruesc about 3 years ago

Changelog

Core

  • SpatialControls
    • Removed preventDefault() call from handlePointerButtonEvent().
spatial-controls - v4.3.1

Published by vanruesc about 3 years ago

Changelog

Managers

  • RotationManager
    • Fixed a zoom damping bug that caused flickering.
spatial-controls - v4.3.0

Published by vanruesc about 3 years ago

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.
spatial-controls - v4.2.3

Published by vanruesc about 3 years ago

Changelog

  • Updated dependencies.
spatial-controls - v4.2.2

Published by vanruesc over 3 years ago

Changelog

  • Updated dependencies.
spatial-controls - v4.2.1

Published by vanruesc over 3 years ago

Changelog

Managers

  • RotationManager
    • Fixed a bug that was introduced by 6d23edc5153f2552ae72916077754687ec0a7431. See 40eeb919f92261a4fadd9bef8f96c1bd9e0d2d9b.