hen Posted January 20, 2016 Share Posted January 20, 2016 Would it be possible to add a freeze option to the ArcRotateCamera target position? Idea is to prevent that the camera follows a mesh wich its moving. Somehow like: camera.setTarget(mymesh); // setting some target pos camera.freezeTargetPosition = true; // freeze target at this position Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 20, 2016 Share Posted January 20, 2016 you can set camera.setTarget(myMesh.position) This should do the trick Quote Link to comment Share on other sites More sharing options...
hen Posted January 20, 2016 Author Share Posted January 20, 2016 26 minutes ago, Deltakosh said: you can set camera.setTarget(myMesh.position) This should do the trick Thanks! That was still following the mesh, but worked when i created a new vector from the mesh position. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 20, 2016 Share Posted January 20, 2016 sorry I messed up my response, I meant: camera.setTarget(myMesh.position.clone()) 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.