mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-09 01:22:21 +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(
|
||||
{ type: "Sphere",
|
||||
position: position,
|
||||
collisionsWillMove: true,
|
||||
dimensions: { x: BULLET_SIZE, y: BULLET_SIZE, z: BULLET_SIZE },
|
||||
color: { red: 10, green: 10, blue: 10 },
|
||||
velocity: velocity,
|
||||
|
@ -137,6 +138,7 @@ function shootTarget() {
|
|||
Entities.addEntity(
|
||||
{ type: "Sphere",
|
||||
position: newPosition,
|
||||
collisionsWillMove: true,
|
||||
dimensions: { x: TARGET_SIZE, y: TARGET_SIZE, z: TARGET_SIZE },
|
||||
color: { red: 0, green: 200, blue: 200 },
|
||||
velocity: velocity,
|
||||
|
@ -155,6 +157,9 @@ function shootTarget() {
|
|||
|
||||
|
||||
function entityCollisionWithVoxel(entity, voxel, collision) {
|
||||
|
||||
print("entityCollisionWithVoxel....");
|
||||
|
||||
var VOXEL_SIZE = 0.5;
|
||||
// Don't make this big. I mean it.
|
||||
var CRATER_RADIUS = 5;
|
||||
|
|
Loading…
Reference in a new issue