mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:24:07 +02:00
Request blocking calls
This commit is contained in:
parent
494c189094
commit
7a1300d66c
1 changed files with 3 additions and 3 deletions
|
@ -274,7 +274,7 @@ function controller(wichSide) {
|
|||
this.glowedIntersectingModel.isKnownID = false;
|
||||
}
|
||||
if (!this.grabbing) {
|
||||
var intersection = Entities.findRayIntersection({
|
||||
var intersection = Entities.findRayIntersectionBlocking({
|
||||
origin: this.palmPosition,
|
||||
direction: this.front
|
||||
});
|
||||
|
@ -304,7 +304,7 @@ function controller(wichSide) {
|
|||
if (this.grabbing) {
|
||||
if (!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,
|
||||
direction: this.front
|
||||
}).entityID;
|
||||
|
@ -475,7 +475,7 @@ function controller(wichSide) {
|
|||
Vec3.print("Looking at: ", this.palmPosition);
|
||||
var pickRay = { origin: this.palmPosition,
|
||||
direction: Vec3.normalize(Vec3.subtract(this.tipPosition, this.palmPosition)) };
|
||||
var foundIntersection = Entities.findRayIntersection(pickRay);
|
||||
var foundIntersection = Entities.findRayIntersectionBlocking(pickRay);
|
||||
|
||||
if(!foundIntersection.accurate) {
|
||||
print("No accurate intersection");
|
||||
|
|
Loading…
Reference in a new issue