mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +02:00
dont move cells in space, just angular velocity
This commit is contained in:
parent
f0d8ffce65
commit
f7b3da078b
2 changed files with 8 additions and 8 deletions
|
@ -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))
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
@ -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/";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue