mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +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;
|
||||
}
|
||||
|
||||
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))
|
||||
|
||||
});
|
||||
|
|
|
@ -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/";
|
||||
|
||||
|
|
Loading…
Reference in a new issue