aframe-super-shooter-kit icon indicating copy to clipboard operation
aframe-super-shooter-kit copied to clipboard

Bullet doesn't gets destroyed even on hitting the target

Open knightMash opened this issue 5 years ago • 2 comments

The bullet even keeps travelling even after hitting the object. How can the bullet be destroyed as soon as it hits the target?

knightMash avatar Jul 30 '20 13:07 knightMash

Are you sure they hit the target? Maybe the bullets move too fast. Does that happen also with very slow bullets?

Does the target move? In that case, set the attribute static: false

feiss avatar Jul 30 '20 19:07 feiss

Be sure that two bullets are not shot exactly at the same time. It can happen if you use "mousedown" event (as suggested in the doc for the click-to-shoot component) alongside mutliple vr controllers (see https://github.com/aframevr/aframe/issues/4496)

robiiiiiiiiiiiin avatar Mar 02 '21 20:03 robiiiiiiiiiiiin