Makoren Posted November 18, 2018 Share Posted November 18, 2018 I'm having difficulty with the ArcFollowCamera. It looks like I can use it, and it follows my mesh correctly, but it doesn't seem to rotate like the ArcRotateCamera does. Is there any reason this might be happening? I've already tried the attachControl method, and after inspecting the camera in Chrome, the inputs property seems to be missing entirely. Here's a playground with my code: https://www.babylonjs-playground.com/#MVQ4L3 I've already checked the following links for solutions: https://doc.babylonjs.com/babylon101/cameras https://doc.babylonjs.com/api/classes/babylon.arcfollowcamera https://www.babylonjs-playground.com/#1A3M5C#0 https://doc.babylonjs.com/how_to/customizing_camera_inputs Any help is appreciated. I'm starting to wonder if this camera is even supposed to rotate at all... Quote Link to comment Share on other sites More sharing options...
Sebavan Posted November 19, 2018 Share Posted November 19, 2018 It normally rotates to follow the target but not following inputs. If you are willing an arc rotate camera reacting to inputs, you could rely on the normal ArcRotateCamera instead ? Quote Link to comment Share on other sites More sharing options...
Makoren Posted November 19, 2018 Author Share Posted November 19, 2018 Turns out I misunderstood what ArcFollowCamera actually does. I thought it was a regular ArcRotateCamera that allows you to rotate around an object, but also follows an object like the FollowCamera. Similar to what you see in MMOs. To achieve this effect I'll have to use an ArcRotateCamera and add the follow functionality myself. Quote Link to comment Share on other sites More sharing options...
Sebavan Posted November 19, 2018 Share Posted November 19, 2018 Indeed but might be cool to standardize if it turns out well ? 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.