Skip to content

Commit

Permalink
Limit the ray for spawning objects
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Glatzel committed Jun 9, 2017
1 parent 5eb267e commit 2f374c6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions IntrinsicEd/src/IntrinsicEd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -595,8 +595,7 @@ spawnDefaultEntity(const Name& p_Name,

// Spawn the object close to the ground
physx::PxRaycastHit hit;
if (PhysxHelper::raycast(worldRay, hit, 1000.0f,
physx::PxQueryFlag::eSTATIC))
if (PhysxHelper::raycast(worldRay, hit, 50.0f, physx::PxQueryFlag::eSTATIC))
{
Components::NodeManager::_position(nodeRef) =
Components::NodeManager::_worldPosition(cameraNode) +
Expand Down

0 comments on commit 2f374c6

Please sign in to comment.