jroosterman Posted September 25, 2017 Share Posted September 25, 2017 Hey Guys, I have an object parented to a modified ArcRotateCamera. The Camera can pan left and right. I want my object to move left and right with the camera but not rotate when the camera rotates around its target. Is there any way to freeze the rotations of a mesh so that it does not rotate with its parent? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 25, 2017 Share Posted September 25, 2017 Hello, unfortunately not out of the box. But you can still simulate it: - Do not add a parent to your mesh - Instead add a function to the scene.onBeforeCameraRenderObservable. - Add camera.position to your mesh.position in this observable jroosterman 1 Quote Link to comment Share on other sites More sharing options...
jroosterman Posted September 25, 2017 Author Share Posted September 25, 2017 Thanks, I will try that. 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.