R
rklauer

  • 4 Jan
  • Joined Nov 29, 2023
  • Yep. I've attached links to some videos as well. I used FocusCamera when using the Free Cam but after the update have tried using both with the Perspective Cam.
    When clicking on the character I run the attached code. I'm grabbing an empty game object attached to characters to get the target position and rotation. I've seen it work occasionally without jumping at the end but very rarely and haven't been able to discern a cause.
    You can ignore the spot positions as those are for character positioning during dialog.
    `public void DialogActivate(GameObject character)
    {
    camPosition = cam.GetComponent<Transform>();
    returnPosition = camPosition.position;
    returnRotation = Quaternion.LookRotation(camPosition.forward);
    Quaternion targetRotation = Quaternion.LookRotation(-character.GetComponent<Conversant>().camPosition.forward);
    Vector3 targetPosition = character.GetComponent<Conversant>().camPosition.position;

        if (camMode != null)
        {
            //camMode.FocusCamera(targetPosition, targetDistance, targetRotation, false);
            camMode.MoveCameraTo(targetPosition, targetDistance, targetRotation);
            StartCoroutine(Wait());
        }
        spotPosition = spot.GetComponent<Transform>();
        spotReturnPosition = spotPosition.position;
        spotReturnRotation = spotPosition.rotation;
    
        Quaternion spotRotation = Quaternion.LookRotation(character.GetComponent<Conversant>().spotPosition.forward);
        spot.transform.position = character.GetComponent<Conversant>().spotPosition.position;
        spot.transform.rotation = spotRotation;
        spot.SetActive(false);
    
        if (objectiveHUD != null) objectiveHUD.GetComponent<ObjectivePanelController>().TogglePanel();
    
    }`

    PerspectiveCam New
    https://youtu.be/JyBHLnSMHmo

    FreeCam Old
    https://youtu.be/2DOxNKp0IzA
    FreeCam New
    https://youtu.be/qJ5R2rxIwuI

    I appreciate the assistance as I've very much enjoyed the asset.

    • I've updated the package, but I'm still getting the jump at the end. I don't get this jump when using the Free Cam but I would like to use the custom movement features that work best with Perspective Cam.

      • I'm enjoying the flexibility in the camera but need to disable the rotate around function bound to the left mouse button. There are input settings for the right mouse button, the middle mouse and mouse wheel but the left mouse is always bound without a way to change.

        I haven't been able to find where it is bound in the scripts yet, could I get some direction to where I may disable it?

        Thanks!