mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 10:06:57 +02:00
end of day
This commit is contained in:
parent
3929af7187
commit
2740391c3b
2 changed files with 19 additions and 18 deletions
|
@ -103,7 +103,7 @@ function createBubbleSystem() {
|
||||||
},
|
},
|
||||||
"emitDimensions": {
|
"emitDimensions": {
|
||||||
"x": -0.2,
|
"x": -0.2,
|
||||||
"y": 1.2000000000000002,
|
"y": 1.6000000000000002,
|
||||||
"z": 0
|
"z": 0
|
||||||
},
|
},
|
||||||
"polarStart": 0,
|
"polarStart": 0,
|
||||||
|
@ -144,7 +144,7 @@ function createBubbleSystem() {
|
||||||
bubbleProperties.position = finalOffset;
|
bubbleProperties.position = finalOffset;
|
||||||
|
|
||||||
bubbleSystem = Entities.addEntity(bubbleProperties);
|
bubbleSystem = Entities.addEntity(bubbleProperties);
|
||||||
//createBubbleSound(finalOffset);
|
createBubbleSound(finalOffset);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -169,7 +169,7 @@ function getOffsetFromTankCenter(VERTICAL_OFFSET, FORWARD_OFFSET, LATERAL_OFFSET
|
||||||
|
|
||||||
function createBubbleSound(position) {
|
function createBubbleSound(position) {
|
||||||
var audioProperties = {
|
var audioProperties = {
|
||||||
volume: 0,
|
volume: 1,
|
||||||
position: position,
|
position: position,
|
||||||
loop: true
|
loop: true
|
||||||
};
|
};
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
var TANK_SEARCH_RADIUS = 5;
|
var TANK_SEARCH_RADIUS = 5;
|
||||||
var WANT_LOOK_DEBUG_LINE = false;
|
var WANT_LOOK_DEBUG_LINE = false;
|
||||||
var WANT_LOOK_DEBUG_SPHERE = true;
|
var WANT_LOOK_DEBUG_SPHERE = false;
|
||||||
|
|
||||||
var INTERSECT_COLOR = {
|
var INTERSECT_COLOR = {
|
||||||
red: 255,
|
red: 255,
|
||||||
|
@ -540,7 +540,8 @@
|
||||||
velocity.x *= -0.15
|
velocity.x *= -0.15
|
||||||
} else if (position.x > upperCorner.x) {
|
} else if (position.x > upperCorner.x) {
|
||||||
position.x = upperCorner.x;
|
position.x = upperCorner.x;
|
||||||
velocity.x *= -0.15 }
|
velocity.x *= -0.15
|
||||||
|
}
|
||||||
if (position.y < lowerCorner.y) {
|
if (position.y < lowerCorner.y) {
|
||||||
position.y = lowerCorner.y;
|
position.y = lowerCorner.y;
|
||||||
velocity.y *= -0.15
|
velocity.y *= -0.15
|
||||||
|
|
Loading…
Reference in a new issue