Change default GUI camera view

Post Reply
artsim
Posts: 2
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.

artsim
Posts: 2
Joined: Wed Jul 10, 2019 3:30 am

Re: Change default GUI camera view

Post by artsim » Thu Jul 18, 2019 5:20 pm

Thank you so much! What is the gui_helper? If you happen to have could you provide like a simple script?
Also, is there an example in python? Does it have a matching interface in python?

Post Reply