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?
@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
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
Hi @WilliamBoersma31! Please wait patiently. In the meantime I will try to answer your question in the other topic.
ok thank you
I see @Leonidas answered your question already.
yes