Jump to content

ArcFollowCamera Not Rotating


Makoren
 Share

Recommended Posts

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...

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...