car not driving forward with forward.clone()
const force = this.entity.forward.clone();
if(up){
this.entity.rigidbody.applyForce(force);
}
I assume sth wrong with vector of 3d model?
car not driving forward with forward.clone()
const force = this.entity.forward.clone();
if(up){
this.entity.rigidbody.applyForce(force);
}
I assume sth wrong with vector of 3d model?
Hi @grzesiekmq,
Force being a clone of the forward vector, which is a normalized vector, has a very small length. That won’t be sufficient force to drive your car forward.
Try scaling it a bit:
const force = this.entity.forward.clone().scale(1000);