Camera Position is crashed when i set the

Hello guys,
I m trying to fixate the camera at an point when I klick at an object.
At the moment i do it like that:
camera.speed=0;
camera.angularSensibility=0;

but when I try to rotate the camera in this fixate mode every think disapiert and its look like there is an empty scene.

Did somebody know how I can fix that or did somebody now how to fixate the camera in rotation and movment speed ?

Hi SIMON_Nagel,

It’s not immediately clear to me what you’re trying to do. Are you trying to move the camera, or are you trying to get it to not move based on user input. If the former, you should be able to get the camera to focus on particular objects or positions by using a TargetCamera such as ArcRotateCamera. If, however, you’re trying to get the camera to stop moving, all you should have to do is tell it to stop accepting inputs.

camera.detachControl();

Hope this helps, and best of luck!

1 Like

I try to not move the camera on user input

thanks :smiley: that was the code that i need :smiley:

1 Like