I have been learning to use play canvas and I am using the First Person Movement script and I can’t seem to stop the player from launching off the map when I move
It looks like you’re applying an impulse here:
if(this.grounded) {
this.entity.rigidbody.applyImpulse(0, 200, 0);
this.entity.sound.play("Boom");
this.entity.sound.resume("Boom");
}
Try removing that and see if that fixes the launching problem.
1 Like
Sadly your answer did not work, but I found a line of code to adjust the movement speed.
FirstPersonMovement.attributes.add(‘power’, {
type: ‘number’,
default: 2500,
description: ‘Adjusts the speed of player movement’
});
1 Like