0

How to set cameras target point

Anonymous 11 years ago updated by manypage 2 years ago 4
This discussion was imported from CodePlex

Rahvil wrote at 2011-09-07 12:13:

Hi again,

Is it possible to set the cameras target point from code. I found target point property from HelixView3D.CameraController.CameraTarget but it's read only. So basically what I would like to achieve from code is the same as double right clicking the model.

Thanks for the help in advance.


objo wrote at 2011-09-07 21:24:

Do you want to change the camera position or the look direction? I think that was the reason I did not add a setter.We could add a setter that changes one of these properties. Also notice that the CameraTarget is a plain property, not a bindable dependency property.


Rahvil wrote at 2011-09-12 10:08:

Thanks for the reply.

I achieved to do what I needed by changing camera position and look direction.