CR feedback

This commit is contained in:
ZappoMan 2017-03-02 14:34:14 -08:00
parent 9e71801ae1
commit 6400bb6319
5 changed files with 5 additions and 5 deletions

View file

@ -142,7 +142,7 @@ function mousePressEvent(event) {
if (!pickResults.intersects) {
return;
}
var isDynamic = Entites.getEntityProperties(pickResults.entityID,"dynamic").dynamic;
var isDynamic = Entites.getEntityProperties(pickResults.entityID, "dynamic").dynamic;
if (isDynamic) {
grabbedEntity = pickResults.entityID;
var props = Entities.getEntityProperties(grabbedEntity)

View file

@ -191,7 +191,7 @@ function controller(side) {
};
var intersection = getRayIntersection(pickRay, true);
var isDynamic = Entites.getEntityProperties(intersection.entityID,"dynamic").dynamic;
var isDynamic = Entites.getEntityProperties(intersection.entityID, "dynamic").dynamic;
if (intersection.intersects && isDynamic) {
this.laserWasHovered = true;

View file

@ -382,7 +382,7 @@ function MyController(hand) {
var grabbableData = getEntityCustomData(GRABBABLE_DATA_KEY, intersection.entityID, DEFAULT_GRABBABLE_DATA);
var properties = Entites.getEntityProperties(intersection.entityID,["locked","name"]);
var properties = Entites.getEntityProperties(intersection.entityID, ["locked", "name"]);
if (properties.name == "Grab Debug Entity") {

View file

@ -343,7 +343,7 @@ Grabber.prototype.pressEvent = function(event) {
return;
}
var isDynamic = Entites.getEntityProperties(pickResults.entityID,"dynamic").dynamic;
var isDynamic = Entites.getEntityProperties(pickResults.entityID, "dynamic").dynamic;
if (!isDynamic) {
// only grab dynamic objects
return;

View file

@ -151,7 +151,7 @@
});
}, randFloat(10, 200));
}
var isDynamic = Entites.getEntityProperties(intersection.entityID,"dynamic").dynamic;
var isDynamic = Entites.getEntityProperties(intersection.entityID, "dynamic").dynamic;
if (isDynamic === 1) {
// Any dynamic entity can be shot