v6.0.0
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
toexports
- Enabled strict null checks
- Changed ts module resolution to
NodeNext
- Raised minimum node version to
0.16.0