taichi icon indicating copy to clipboard operation
taichi copied to clipboard

What is RMB?

Open kurt-rhee opened this issue 3 years ago • 3 comments

https://docs.taichi-lang.org/api/taichi/ui/#taichi.ui.RMB

In the documentation above, I am not sure what RMB means.

kurt-rhee avatar Jun 30 '23 14:06 kurt-rhee

Does this mean "right mouse button?"

kurt-rhee avatar Jun 30 '23 14:06 kurt-rhee

https://docs.taichi-lang.org/api/taichi/ui/#taichi.ui.RMB

In the documentation above, I am not sure what RMB means.

CNY

Crain99 avatar Jul 01 '23 02:07 Crain99

Does this mean "right mouse button?"

Exactly. You can try out the example here : https://docs.taichi-lang.org/docs/ggui#3d-geometries

In the ui's main loop, there is a line specifying the behavior of the camera:

while window.running:
    camera.track_user_inputs(window, movement_speed=0.03, hold_key=ti.ui.RMB)

This means that you can hold the "right mouse button" to rotate the camera. You can change the hold_key to ti.ui.LMB so that you can hold the "left mouse button" to rotate.

And unfortunately, RMB != CNY in Taichi ;)

houkensjtu avatar Jul 01 '23 05:07 houkensjtu