Page 1 of 1

Change default GUI camera view

Posted: Wed Jul 10, 2019 3:33 am
by artsim
Hi everyone,
how to change the default GUI camera viewpoint using bullet_client?
Thanks in advance!

Re: Change default GUI camera view

Posted: Sun Jul 14, 2019 7:25 am
by yakir
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.