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.
@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.
It should be more like this:
this.entity.rigidbody.angularFactor = pc.Vec3.ZERO;
You were setting a pc.Vec3 to the x axis only.
Hi @WilliamBoersma31! Please wait patiently. In the meantime I will try to answer your question in the other topic.
1 Like
ok thank you
yes