have grab.js do *accurate* picking!

This commit is contained in:
Seth Alves 2015-05-13 19:38:19 -07:00
parent 96b761357b
commit 73fa1af24a

View file

@ -76,7 +76,7 @@ function mousePressEvent(event) {
return;
}
var pickRay = Camera.computePickRay(event.x, event.y);
var intersection = Entities.findRayIntersection(pickRay);
var intersection = Entities.findRayIntersection(pickRay, true); // accurate picking
if (intersection.intersects && intersection.properties.collisionsWillMove) {
grabbedEntity = intersection.entityID;
var props = Entities.getEntityProperties(grabbedEntity)