Help with shooting movement

I have a problem with the angle of my arrow when shooting it because the angle of my arrow is on its side whenever I shoot.

Here’s my game:
(PlayCanvas | HTML5 Game Engine)

Hi @Pixels!

Below your code with some minor changes.

var ShootBullet = pc.createScript('shootBullet');


// initialize code called once per entity
ShootBullet.prototype.initialize = function() {


// update code called every frame
ShootBullet.prototype.update = function(dt){
    if ( || {
        var BulletFromTheAsset =;
        var BulletInstance = BulletFromTheAsset.resource.instantiate();

        var BulletPosition = this.bulletEmitter.getPosition();
        var BulletRotation = this.bulletEmitter.getRotation();
        BulletInstance.rigidbody.teleport(BulletPosition, BulletRotation); 

        this.force = new pc.Vec3();