bser Posted April 1, 2017 Share Posted April 1, 2017 Hello. What is the best way to create a way to interact with object while looking at a object with the camera's z axis. For example, we want to change a chair mesh to another mesh, when we look at the chair the user should be able to see the new mesh that we decide to replace it with. Quote Link to comment Share on other sites More sharing options...
bser Posted April 1, 2017 Author Share Posted April 1, 2017 Without pressing buttons or clicking on the screen. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 3, 2017 Share Posted April 3, 2017 In this case the best option could be to register some user code with scene.registerBeforeRender. With this code, you could use scene.pick() using center of the screen coordinates and get the picked object (if any) if the picked object is your chair then do what you want with it Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.