mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 07:37:20 +02:00
fix grenades
This commit is contained in:
parent
c7d544cd58
commit
2a281298f0
1 changed files with 5 additions and 0 deletions
|
@ -100,6 +100,7 @@ function shootBullet(position, velocity) {
|
||||||
Entities.addEntity(
|
Entities.addEntity(
|
||||||
{ type: "Sphere",
|
{ type: "Sphere",
|
||||||
position: position,
|
position: position,
|
||||||
|
collisionsWillMove: true,
|
||||||
dimensions: { x: BULLET_SIZE, y: BULLET_SIZE, z: BULLET_SIZE },
|
dimensions: { x: BULLET_SIZE, y: BULLET_SIZE, z: BULLET_SIZE },
|
||||||
color: { red: 10, green: 10, blue: 10 },
|
color: { red: 10, green: 10, blue: 10 },
|
||||||
velocity: velocity,
|
velocity: velocity,
|
||||||
|
@ -137,6 +138,7 @@ function shootTarget() {
|
||||||
Entities.addEntity(
|
Entities.addEntity(
|
||||||
{ type: "Sphere",
|
{ type: "Sphere",
|
||||||
position: newPosition,
|
position: newPosition,
|
||||||
|
collisionsWillMove: true,
|
||||||
dimensions: { x: TARGET_SIZE, y: TARGET_SIZE, z: TARGET_SIZE },
|
dimensions: { x: TARGET_SIZE, y: TARGET_SIZE, z: TARGET_SIZE },
|
||||||
color: { red: 0, green: 200, blue: 200 },
|
color: { red: 0, green: 200, blue: 200 },
|
||||||
velocity: velocity,
|
velocity: velocity,
|
||||||
|
@ -155,6 +157,9 @@ function shootTarget() {
|
||||||
|
|
||||||
|
|
||||||
function entityCollisionWithVoxel(entity, voxel, collision) {
|
function entityCollisionWithVoxel(entity, voxel, collision) {
|
||||||
|
|
||||||
|
print("entityCollisionWithVoxel....");
|
||||||
|
|
||||||
var VOXEL_SIZE = 0.5;
|
var VOXEL_SIZE = 0.5;
|
||||||
// Don't make this big. I mean it.
|
// Don't make this big. I mean it.
|
||||||
var CRATER_RADIUS = 5;
|
var CRATER_RADIUS = 5;
|
||||||
|
|
Loading…
Reference in a new issue