mirror of
https://github.com/JulianGro/overte.git
synced 2025-05-08 05:09:36 +02:00
Merge branch 'master' of https://github.com/worklist/hifi
This commit is contained in:
commit
1048c9cda3
1 changed files with 3 additions and 3 deletions
|
@ -283,7 +283,7 @@ function controller(wichSide) {
|
||||||
this.glowedIntersectingModel.isKnownID = false;
|
this.glowedIntersectingModel.isKnownID = false;
|
||||||
}
|
}
|
||||||
if (!this.grabbing) {
|
if (!this.grabbing) {
|
||||||
var intersection = Entities.findRayIntersection({
|
var intersection = Entities.findRayIntersectionBlocking({
|
||||||
origin: this.palmPosition,
|
origin: this.palmPosition,
|
||||||
direction: this.front
|
direction: this.front
|
||||||
});
|
});
|
||||||
|
@ -313,7 +313,7 @@ function controller(wichSide) {
|
||||||
if (this.grabbing) {
|
if (this.grabbing) {
|
||||||
if (!this.entityID.isKnownID) {
|
if (!this.entityID.isKnownID) {
|
||||||
print("Unknown grabbed ID " + this.entityID.id + ", isKnown: " + this.entityID.isKnownID);
|
print("Unknown grabbed ID " + this.entityID.id + ", isKnown: " + this.entityID.isKnownID);
|
||||||
this.entityID = Entities.findRayIntersection({
|
this.entityID = Entities.findRayIntersectionBlocking({
|
||||||
origin: this.palmPosition,
|
origin: this.palmPosition,
|
||||||
direction: this.front
|
direction: this.front
|
||||||
}).entityID;
|
}).entityID;
|
||||||
|
@ -484,7 +484,7 @@ function controller(wichSide) {
|
||||||
Vec3.print("Looking at: ", this.palmPosition);
|
Vec3.print("Looking at: ", this.palmPosition);
|
||||||
var pickRay = { origin: this.palmPosition,
|
var pickRay = { origin: this.palmPosition,
|
||||||
direction: Vec3.normalize(Vec3.subtract(this.tipPosition, this.palmPosition)) };
|
direction: Vec3.normalize(Vec3.subtract(this.tipPosition, this.palmPosition)) };
|
||||||
var foundIntersection = Entities.findRayIntersection(pickRay);
|
var foundIntersection = Entities.findRayIntersectionBlocking(pickRay);
|
||||||
|
|
||||||
if(!foundIntersection.accurate) {
|
if(!foundIntersection.accurate) {
|
||||||
print("No accurate intersection");
|
print("No accurate intersection");
|
||||||
|
|
Loading…
Reference in a new issue