hide scenepicker target if no intersection
This commit is contained in:
parent
5aad6c7357
commit
7bfe4af4cd
@ -51,10 +51,12 @@ void ScenePicker::update()
|
||||
if(m_pickSucceeded)
|
||||
{
|
||||
ImGui::Text("Intersection : ( %.3f, %.3f, %.3f )", m_pickedPos.x, m_pickedPos.y, m_pickedPos.z);
|
||||
if(!isVisible()) setVisible(m_pickSucceeded);
|
||||
}
|
||||
else
|
||||
{
|
||||
ImGui::Text("No intesection");
|
||||
if(isVisible()) setVisible(m_pickSucceeded);
|
||||
}
|
||||
// if(ImGui::Button("Teleport"))
|
||||
//move player to target coordinate
|
||||
|
Loading…
x
Reference in New Issue
Block a user