mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 13:28:09 +02:00
Merge pull request #14661 from danteruiz/grabbing-web-entites
allow mouse pointer to pick against collidable entities
This commit is contained in:
commit
963bbbad19
1 changed files with 1 additions and 1 deletions
|
@ -2286,7 +2286,7 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo
|
||||||
|
|
||||||
// Setup the mouse ray pick and related operators
|
// Setup the mouse ray pick and related operators
|
||||||
{
|
{
|
||||||
auto mouseRayPick = std::make_shared<RayPick>(Vectors::ZERO, Vectors::UP, PickFilter(PickScriptingInterface::PICK_ENTITIES() | PickScriptingInterface::PICK_INCLUDE_NONCOLLIDABLE()), 0.0f, true);
|
auto mouseRayPick = std::make_shared<RayPick>(Vectors::ZERO, Vectors::UP, PickFilter(PickScriptingInterface::PICK_ENTITIES()), 0.0f, true);
|
||||||
mouseRayPick->parentTransform = std::make_shared<MouseTransformNode>();
|
mouseRayPick->parentTransform = std::make_shared<MouseTransformNode>();
|
||||||
mouseRayPick->setJointState(PickQuery::JOINT_STATE_MOUSE);
|
mouseRayPick->setJointState(PickQuery::JOINT_STATE_MOUSE);
|
||||||
auto mouseRayPickID = DependencyManager::get<PickManager>()->addPick(PickQuery::Ray, mouseRayPick);
|
auto mouseRayPickID = DependencyManager::get<PickManager>()->addPick(PickQuery::Ray, mouseRayPick);
|
||||||
|
|
Loading…
Reference in a new issue