Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to display arrow when dragging? #19

Closed
gyuta opened this issue Aug 19, 2022 · 2 comments
Closed

How to display arrow when dragging? #19

gyuta opened this issue Aug 19, 2022 · 2 comments

Comments

@gyuta
Copy link

gyuta commented Aug 19, 2022

This is nice repository. This code will help me a lot.

But I have a question about displaying arrow when dragging.

In example in readme.md, arrow to indicate force is displayed like this.

161459985-a47e74dc-92c9-4a0b-99fc-92d1b5b04163

mujoco-python-viewer.Ubuntu.2022-08-19.15-43-19.mp4

However, it shows a box and prevent me from undastanfing the direction of the force in my trial.
I also trys left/right ctrl keys.

Do you have any idea to fix this?

thanks

this is my environment
python 3.7.12
glfw 2.5.4
mujoco-python-viewer 0.1.1

@rohanpsingh
Copy link
Owner

Hi, you are applying torques. If you double-click on an object, and then hold the ctrl key and use your RIGHT mouse button, you can apply forces!
Let me know if that helps :)

@gyuta
Copy link
Author

gyuta commented Aug 19, 2022

Thanks for quick reply :)
it works!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants