Make hit collider taller

This commit is contained in:
Diego Marcos
2018-11-06 15:44:21 -08:00
parent b947340933
commit e72961a29e

View File

@@ -266,7 +266,7 @@ AFRAME.registerComponent('beat', {
// Hit colliders are 40% larger than the block.
hitColliderConfiguration = {
position: {x: 0, y: data.size / 2, z: 0},
size: {width: data.size * 1.4, height: data.size / 5.0, depth: data.size* 1.4}
size: {width: data.size * 1.4, height: data.size / 3.0, depth: data.size* 1.4}
};
hitColliderEl = this.hitColliderEl = document.createElement('a-entity');