Changes
Co-authored-by: Reifonas <211114984+Reifonas@users.noreply.github.com>
This commit is contained in:
@@ -72,6 +72,12 @@ export function FakeControllers() {
|
||||
fakeInput.right.gripWorld.makeTranslation(0.25, 1.2, -0.5);
|
||||
force((n) => n + 1);
|
||||
return;
|
||||
} else if (k === 'l' || k === 'L') {
|
||||
const s = useModelStore.getState();
|
||||
const next = !s.isLocked;
|
||||
s.setLocked(next);
|
||||
console.log(`[lock] ${next ? 'ON' : 'OFF'} (keyboard)`);
|
||||
return;
|
||||
}
|
||||
apply();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user