cables-gl / cables_docs

cables documentation docs.cables.gl
https://cables.gl/docs/docs
45 stars 15 forks source link

Mobile WASD Camera support and terrain interactivity #80

Closed n4hui closed 2 years ago

n4hui commented 2 years ago

Hi! As we talk in the meetup, this WASD Camera is great in combination with Cast Ray 3D Selection, but to make it more cool for the masses, the mobile version is needed, sort of inputs for the x, y and z camera and orientation to be controlled with css buttons.

Also you commented that the js library that make this magic have an option to interact with terrain without pixel displacement tricks, so it could be also implemented in the Op.

Thank in advance for this feature, is very cool to make this kind of stuff in cables, speedy and lightly in the browser.

pandrr commented 2 years ago

i implemented wasd cam stuff and invited you to the patch.

please create two issues for two topics next time! thanks!

note for me: physics op should use cannonjs heightfield https://schteppe.github.io/cannon.js/docs/classes/Heightfield.html

n4hui commented 2 years ago

Thank you very much! I modified the patch and tested in my Android phone and works very well. The function that is needed too is the orientation to the left and right as it works with the mouse in desktop, i mean to rotate the view in your own axis (i tested it using transform view but it don't works). i added two buttons for this, in my case, orientation only for left and right is enuff, up and down orientation could be more for flying stuff.

steam0r commented 2 years ago

please create seperate issues if ther are multiple issues with different topics

n4hui commented 2 years ago

ok

steam0r commented 2 years ago

this went live with todays release, have fun!

n4hui commented 2 years ago

thank you a lot!