[SOLVED] Stopping Player From Falling Over Help!

I’m making a fps game and I need help with locking rotation of the player entity.

Hi @WilliamBoersma31, can you expand a bit on how your player controller works now?

If you mean disabling rotation then try disabling any input handlers that manage entity rotation at that instant.

Are you not using the First Person Starter Kit?

1 Like

@will I am using a slightly modified version of the Fps starter kit.
@Leonidas That wouldn’t work because I’m just trying to stop the character from falling over not stop them from looking around.

@will the modifications just add controller support

Can anyone tell me what is wrong with this code?

Hi @WilliamBoersma31,

It should be more like this:

this.entity.rigidbody.angularFactor = pc.Vec3.ZERO;

You were setting a pc.Vec3 to the x axis only.

@Leonidas Thank you it worked really well

1 Like

@Leonidas while I have your attention would you be able to help here

@Leonidas ?

Hi @WilliamBoersma31! Please wait patiently. In the meantime I will try to answer your question in the other topic.

1 Like

ok thank you

I see @Leonidas answered your question already.

yes