3
0
Fork 0
mirror of https://github.com/lubosz/overte.git synced 2025-04-27 05:35:37 +02:00

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
unpublishedScripts/DomainContent/CellScience

View file

@ -150,12 +150,12 @@
return;
}
var magnitudeV = self.maxVelocity;
var directionV = {
x: Math.random() - 0.5,
y: Math.random() - 0.5,
z: Math.random() - 0.5
};
// var magnitudeV = self.maxVelocity;
// var directionV = {
// x: Math.random() - 0.5,
// y: Math.random() - 0.5,
// z: Math.random() - 0.5
// };
//print("POS magnitude is " + magnitudeV + " and direction is " + directionV.x);
@ -168,7 +168,7 @@
};
//print("ROT magnitude is " + magnitudeAV + " and direction is " + directionAV.x);
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))
});

View file

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