Change default GUI camera view

Post Reply
artsim
Posts: 1
Joined: Wed Jul 10, 2019 3:30 am

Change default GUI camera view

Post by artsim » Wed Jul 10, 2019 3:33 am

Hi everyone,
how to change the default GUI camera viewpoint using bullet_client?
Thanks in advance!

yakir
Posts: 4
Joined: Fri Jul 05, 2019 6:27 am

Re: Change default GUI camera view

Post by yakir » Sun Jul 14, 2019 7:25 am

Hi ,
In the examples there is the following function

Code: Select all

 void resetCamera()
	{
		float dist = 120;
		float pitch = -35;
		float yaw = 52;
		float targetPos[3] = {0, 10.46, 0};
		m_guiHelper->resetCamera(dist, yaw, pitch, targetPos[0], targetPos[1], targetPos[2]);
	}
Which control the camera view you can change the values and it will change the camera.

Post Reply