We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Camera movement problem

Home Forums Puzzles Camera movement problem

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #59414
    tonec
    Participant

    Hello, I have a strange camera bug that I couldn’t figure out.

    – When I click an object in the scene I want to move the camera to a position and look at a direction, stay there without any camera controls. Simple as that.
    – I have only one camera in the scene. I have two empties. one for location and one for direction.
    – When object is clicked, it does the camera movement but then camera jumps to a strange location.

    Any suggestions?

    Attachments:
    You must be logged in to view attached files.
    #59419
    tonec
    Participant

    Here how it happens:
    – When object is clicked camera moves as expected
    – But when the movement is finishes, it jumps out somewhere else.

    Attachments:
    You must be logged in to view attached files.
    #59425
    kdv
    Participant

    1. is it really necessary to look at the same object twice? Once is not enough?

    the camera look at puzzle is a private case of the tween camera puzzle, without a position changing. remove it. your camera is already looking at the target.

    2. the distance between the new camera position and the look at point is less then 8 meters. that’s why the camera jumps back.

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #59433
    tonec
    Participant

    Oh thank you, I was not even aware of that!
    And yes there is no need to camera look at, I was just trying =)
    You saved my day!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.