branchrust_reboot/main/sticky_debugcamcancel
20 Commits over 0 Days - ∞cph!
Fix rotation while in orbit mode
Potential solution for camlerp while parented, movement feels slightly different but it might be good enough
Saved camera states now store the parent entity and bone name, will attempt to restore the parent and local space position/rotation if the entity can be found
Fixes "Return to start position" option when recording a shot while parented not working
More work on shot compatibility, fixing stuttering and incorrect offsets when exiting shots
Fix demos UI public variables inside CLIENT blocks
Fixed not being able to set camBone by name
Potentially fixed camera rotation input while parented to a nested transform
Fixed camera position/rotation changing when cycling through bones
Show bone name on demo UI when parented to a bone (won't show if parented to the root of an entity)
Test demos, on right branch this time
Remove clamp on how far the dolly camera can move backwards
Set proper orbit distance when parenting to an entity
Move debug camera Update loop into LateUpdate, fixes jittering when parented to animators (might cause other issues, will need to monitor)
Fixed ent_find_radius not working from debug camera position
Fixed camlerp position not working
Fixed camera position/rotation changing when changing parent (either via keybind or convar)
Fixed offsets not recalculating when entering/exiting parented space (still not 100% right)
Fix Client.camlerp not working in parented camera mode (lerp is applied in local space)
Added debugging.debugcamera_orbitwhileparented, true is legacy behaviour, false is new default and uses same controls as unparented mode
Parenting to an entity now properly converts the debug camera's position and rotation calculation to be in local space (previously rotation was in local space but position was world space)
Removed debugcamera_bonerotation, this functionality is now active whenever the camera is parented to something
Now emulates a physically attached camera