
Research
Security News
Malicious npm Packages Use Telegram to Exfiltrate BullX Credentials
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
delta-controls
Advanced tools
A 3D movement controller that supports multiple movement modes and configurable input settings.
This library requires the peer dependency math-ds.
npm install math-ds delta-controls
Note: This library is compatible with the math classes from three.js.
import { Quaternion, Vector3 } from "math-ds";
import { DeltaControls } from "delta-controls";
const position = new Vector3();
const rotation = new Quaternion();
const domElement = document.getElementById("viewport");
const controls = new DeltaControls(position, rotation, domElement);
let t0 = performance.now();
(function render(t) {
requestAnimationFrame(render);
controls.update(t0 - t);
t0 = t;
// Render things.
}());
import { Action, KeyCode } from "delta-controls";
const settings = controls.settings;
const keyBindings = settings.keyBindings;
// Activate or deactivate third person controls. Enabled by default.
controls.setOrbitEnabled(true|false);
settings.pointer.hold = true;
settings.rotation.minPolarAngle = 0.125;
settings.sensitivity.rotation = 0.075;
settings.translation.enabled = true;
settings.zoom.minDistance = 1.0;
keyBindings.delete(KeyCode.X);
keyBindings.set(KeyCode.V, Action.MOVE_DOWN);
const settingsURL = settings.toDataURL();
const a = document.createElement("a");
a.href = settingsURL;
a.setAttribute("download", "controls.json");
a.click();
URL.revokeObjectURL(settingsURL);
const request = new XMLHttpRequest();
request.addEventListener("readystatechange", function() {
if(this.readyState === 4 && this.status === 200) {
controls.settings.copy(JSON.parse(this.responseText));
}
});
request.open("GET", "./controls.json");
request.send();
Please refer to the contribution guidelines for details.
FAQs
A 3D movement controller.
The npm package delta-controls receives a total of 2 weekly downloads. As such, delta-controls popularity was classified as not popular.
We found that delta-controls demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.
Security News
AI-generated slop reports are making bug bounty triage harder, wasting maintainer time, and straining trust in vulnerability disclosure programs.