CameraFollowComponent

This topic contains 1 reply, has 2 voices, and was last updated by Avatar andy 8 months, 3 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #10914
    Avatar
    el_prinz
    Moderator

    This command can be used to lock the camera to a (dynamic) component to follow it during simulation.

    Attachments:
    You must be logged in to view attached files.
    #11015
    Avatar
    andy
    Participant

    very good!

    #11872
    Johnny
    Johnny
    Participant

    Great AddOn, thanks!

     

    For some reason my “Camera.Eye” is updated as soon as “Camera.Coi” changes.

    This results in my camera always moving parallel to the object I selected.

     

    I don’t know why this happens but I’m now making a backup of the eye position in order to reset it after the Coi changed. With this change my camera follows the object without changing it’s eye position.

    Maybe it helps someone:

    eye = vcVector.new(camera.Eye)
    camera.Coi = origin.P + atX + atY + atZ
    camera.Eye = eye

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.