Jump to content

[resolved] arcRotateCamera mesh target & panning bug(?).


aWeirdo
 Share

Recommended Posts

Hi guys,

i notised some protential bugs setting a camera.target = mesh / mesh.position; and then attempting to pan,

while in my head it would make sense to update the camera.target on panning and stop following the mesh,

what it does:

camera.target = mesh.position; //panning moves the target mesh around.

camera.target = mesh; //attempting to pan crashes babylon.

 

I made a PG to show it, clicking 1 or 2  on your keyboard or numpad will set the camera targets described above. and you can then pan by right-clicking.

http://www.babylonjs-playground.com/#1Y5NE6#1

Cheers.

 

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