question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Edit mode (tilde grabbing)

See original GitHub issue

Edit mode (tilde/~ to enable) was working a few weeks ago but now it’s broken; it doesn’t grab objects correctly. When you grab right now, objects will teleport to origin and stay there.

It was previously working like Fortnite, though the matrix inversion was always wrong and caused spatial skipping when clicking the object, which is a bad experience that we can fix.

When you click the object it should stay in place but attach itself to your character. Moving camera should move the object to the new transposed location based on the camera difference. We also have keys like E (rotate left), R (rotate right), V (toggle colliders) which should be respected. to control the grabbed object.

The code for this lives in game.js but that’s not good abstraction. This control mode should be its own file, communicating with io-manager.js to get keys and the other managers (like physics) to effect the correct transforms when in edit mode.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
TheoTheDevcommented, Apr 6, 2022

@ohmed is this actually UI related?

like 50/50, I would move the logic from the game.js to editor-block component [react/UI].

0reactions
TheoTheDevcommented, Apr 11, 2022

ok, moved all keyhandling to io-manager.

Read more comments on GitHub >

github_iconTop Results From Across the Web

About "tilde" on the keyboard - ZBrushCentral
You can see it in action by drawing a sphere and selecting the newly grabbed texture then go to edit mode. the texture...
Read more >
How to get tilde enclosed in parenthesis - TeX
Quick and simple question (actually surprised I couldn't find it on Stackexchange already): How can I typeset (in math mode) quantities with a ......
Read more >
Exercise 8: Use Shuffle Mode | The Pro Tools Edit Window
Use the ~ (tilde) key (it's directly above the Tab key) to scroll through modes. Use the Esc key or click the center...
Read more >
T82492 Can't type tilde (~) in text editing mode
Pressing ⇧ + ` (grave accent) enters into fly/walk navigation even when in text editing mode. This makes it impossible to type letters...
Read more >
Blender For Dummies Cheat Sheet
Ctrl+left-click (edit mode), Remove from selection. Left-click+drag, Box selection ... G, Grab/move ... Tilde (~), Show view pie menu.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found