mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 21:57:00 +02:00
more velocity
This commit is contained in:
parent
f12acfb7f3
commit
54ee3d347c
1 changed files with 4 additions and 4 deletions
|
@ -18,8 +18,8 @@
|
||||||
_this.launchSound = SoundCache.getSound("https://s3-us-west-1.amazonaws.com/hifi-content/eric/Sounds/missle+launch.wav");
|
_this.launchSound = SoundCache.getSound("https://s3-us-west-1.amazonaws.com/hifi-content/eric/Sounds/missle+launch.wav");
|
||||||
_this.explosionSound = SoundCache.getSound("https://s3-us-west-1.amazonaws.com/hifi-content/eric/Sounds/fireworksExplosion.wav");
|
_this.explosionSound = SoundCache.getSound("https://s3-us-west-1.amazonaws.com/hifi-content/eric/Sounds/fireworksExplosion.wav");
|
||||||
_this.timeToExplosionRange = {
|
_this.timeToExplosionRange = {
|
||||||
min: 2000,
|
min: 2500,
|
||||||
max: 4000
|
max: 4500
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -60,8 +60,8 @@
|
||||||
z: 0.24
|
z: 0.24
|
||||||
}, randFloat(0.2, 1.5));
|
}, randFloat(0.2, 1.5));
|
||||||
var missleRotation = Quat.fromPitchYawRollDegrees(randInt(-60, 60), 0, randInt(-60, 60));
|
var missleRotation = Quat.fromPitchYawRollDegrees(randInt(-60, 60), 0, randInt(-60, 60));
|
||||||
var missleVelocity = Vec3.multiply(Quat.getUp(missleRotation), randFloat(1, 3));
|
var missleVelocity = Vec3.multiply(Quat.getUp(missleRotation), randFloat(2, 4));
|
||||||
var missleAcceleration = Vec3.multiply(Quat.getUp(missleRotation), randFloat(0.7, 3));
|
var missleAcceleration = Vec3.multiply(Quat.getUp(missleRotation), randFloat(1, 3));
|
||||||
var missle = Entities.addEntity({
|
var missle = Entities.addEntity({
|
||||||
type: "Model",
|
type: "Model",
|
||||||
modelURL: MODEL_URL,
|
modelURL: MODEL_URL,
|
||||||
|
|
Loading…
Reference in a new issue