dont move cells in space, just angular velocity

This commit is contained in:
James B. Pollack 2016-02-22 11:36:53 -08:00
parent f0d8ffce65
commit f7b3da078b
2 changed files with 8 additions and 8 deletions

View file

@ -150,12 +150,12 @@
return; return;
} }
var magnitudeV = self.maxVelocity; // var magnitudeV = self.maxVelocity;
var directionV = { // var directionV = {
x: Math.random() - 0.5, // x: Math.random() - 0.5,
y: Math.random() - 0.5, // y: Math.random() - 0.5,
z: Math.random() - 0.5 // z: Math.random() - 0.5
}; // };
//print("POS magnitude is " + magnitudeV + " and direction is " + directionV.x); //print("POS magnitude is " + magnitudeV + " and direction is " + directionV.x);
@ -168,7 +168,7 @@
}; };
//print("ROT magnitude is " + magnitudeAV + " and direction is " + directionAV.x); //print("ROT magnitude is " + magnitudeAV + " and direction is " + directionAV.x);
Entities.editEntity(self.entityId, { Entities.editEntity(self.entityId, {
velocity: Vec3.multiply(magnitudeV, Vec3.normalize(directionV)), // velocity: Vec3.multiply(magnitudeV, Vec3.normalize(directionV)),
angularVelocity: Vec3.multiply(magnitudeAV, Vec3.normalize(directionAV)) angularVelocity: Vec3.multiply(magnitudeAV, Vec3.normalize(directionAV))
}); });

View file

@ -5,7 +5,7 @@
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
// //
var version = 1051; var version = 1052;
var cellLayout; var cellLayout;
var baseLocation = "https://hifi-content.s3.amazonaws.com/DomainContent/CellScience/"; var baseLocation = "https://hifi-content.s3.amazonaws.com/DomainContent/CellScience/";