Apply force help

I have it so it applies force to make it go forward but when I turn it around and apply it it goes backwards. How do I fix this?

Hi @GraphicBuildGames! You need to apply the force in the forward direction of the entity. You can check the first and third persons examples or something like below, but it depend on what you are trying to do.

this.power = 100;
this.force = new pc.Vec3();
this.force.copy(this.entity.forward);
this.force.scale(this.power);
    
this.entity.rigidbody.applyForce(this.force);
1 Like