|
|
@@ -208,7 +208,7 @@ void CrowdNavigation::CreateUI()
|
|
|
instructionText->SetText(
|
|
|
"Use WASD keys to move, RMB to rotate view\n"
|
|
|
"LMB to set destination, SHIFT+LMB to spawn a Jack\n"
|
|
|
- "MMB to add obstacles or remove obstacles/agents\n"
|
|
|
+ "MMB or O key to add obstacles or remove obstacles/agents\n"
|
|
|
"F5 to save scene, F7 to load\n"
|
|
|
"Space to toggle debug geometry\n"
|
|
|
"F12 to toggle this instruction text"
|
|
|
@@ -443,7 +443,7 @@ void CrowdNavigation::MoveCamera(float timeStep)
|
|
|
if (input->GetMouseButtonPress(MOUSEB_LEFT))
|
|
|
SetPathPoint(input->GetQualifierDown(QUAL_SHIFT));
|
|
|
// Add new obstacle or remove existing obstacle/agent with middle mouse button
|
|
|
- else if (input->GetMouseButtonPress(MOUSEB_MIDDLE))
|
|
|
+ else if (input->GetMouseButtonPress(MOUSEB_MIDDLE) || input->GetKeyPress('O'))
|
|
|
AddOrRemoveObject();
|
|
|
|
|
|
// Check for loading/saving the scene from/to the file Data/Scenes/CrowdNavigation.xml relative to the executable directory
|