I am trying to fix it so that when my player goes prone, he gets aligned to the ground. It's harder than it sounds.
The player has a pitch and a yaw. Although I can find the normal of the triangle he is standing on, there doesn't seem to be any way to use that effectively. AlignToVector(entity,nx,ny,nz,2), and then applying the rotations, does nto produce the desired effect.
The player has a pitch and a yaw. Although I can find the normal of the triangle he is standing on, there doesn't seem to be any way to use that effectively. AlignToVector(entity,nx,ny,nz,2), and then applying the rotations, does nto produce the desired effect.