Skip to content

adding a special cameraposition tween #723

@u19809

Description

@u19809

when I focus an a node I would like my camera to stay parallel to its starting position.
at the start my camera is at position 0.0.Z and looking to 0.0.0 (it is looking down the Z axis)
when I click on a node I would like my camera to move to that node, look at it a the x and y of the node and a certain distance away from the z value of that node. this way my chart does not rotate which is confusing.

However the cameraPosition seems to lookto the node but towards the 0.0.0. This implies that the chart rotates when i use cameraposition. this I believe because if I do not specify lookat, it defaults to 0.0.0

is there a way to create this behavior ? If not I need to create a special tween for threejs but who can integrate that in the animation loop ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions