Need urgent help for FPS shooting function

Project link: PlayCanvas | HTML5 Game Engine


The bullet firing from the gun is supposed to shoot at a trajectory forward but instead respawns in a singular place and just stacks up on top of each other. Have been struggling with this for days and cannot seem to fix it.

The bullet has rigid body and collision components. BulletEmitter is parsed with the script of the gun.

Hoping for any help with this at all! I am at a lost and need help as soon as possible. Thank you in advance for those who can help!

Hi @sdnrys and welcome!

If you change the rotation of your BulletEmitter entity like below, you can use this entity as forward direction for your bullet.


1 Like