Script seems correct to me. Unfortunately, I cannot access the branch you are working on. I would double check that the entity you are trying to hit has a correct collision and rigidbody component.
The code in the master is the same as the branch now, so both are same I believe.
I can try debug it, will see where I get with it.
Maybe I need to pass the value of where the bullet lands, through player.js to game-room.js,
Iām not sure. Will look into this.
Yes, but the enemy player entity has still no collision component in the branch I can see.
Does it work locally?
@Albertos Thank you for that. The collision works now, I can see that I shot the enemy.
2 Likes