Cyberpunk 2077
0 of 0

File information

Last updated

Original upload

Created by

Perfectly Normal Beast

Uploaded by

PerfNormBeast

Virus scan

Safe to use

Tags for this mod

About this mod

For mod authors only. Demonstrates how to apply an arbitrary rotation to the fpp camera

Requirements
Permissions and credits
This is meant for mod creators.  End users won't enjoy this

This mod listens to some inputs to adjust roll/pitch/yaw and shows how to apply them to a quaternion

Note that any axis and angle can be used.  The only reason that roll/pitch/yaw were used is because it's easy to map keys to those vectors

This adjusted orientation becomes the center of the player's camera rotation.  The player can still look up and down across 180 degrees (90 up, 90 down), but the center is according to the rotation that you set

Even though any rotation can be applied, extreme values would only make sense for a flight sim or doing backflips or something.  Keep in mind though that it's only the camera that's moving.  The body is still straight up and down

























v1.1
- Added a trackball control.  With a little bit of work, it could be made more generic and an extra way to adjust the orientation of spawned objects


v1.2
- Fixed the trackball lines.  Previous attempts were trying too hard, I tried inverse rotations.  The fix was simply using standard rotation, then negate Y (need to negate, because controls want negative to be up)