Integrate source airborne tilt and logical-root rendering
This commit is contained in:
1 parent
a61f1b0284
commit
27be8ed630
36 files changed
+1953
-62
No files matched your search
@@ -9,6 +9,19 @@ public readonly record struct JimmyAirApply(Vector3 Velocity,Vector3 Rotation,fl
|
||||
/// caller phases. Source constraints and observations: jimmy-air-motion.md.</summary>
|
||||
public static class JimmyAirMotion
|
||||
{
|
||||
public const float ForwardPitch = -40;
|
||||
public const float BackwardPitch = 10;
|
||||
|
||||
/// <summary>439DB7..439E33 target write. Pitch seeds belong to the preceding
|
||||
/// apply/constructor phase, not the currently dispatched input mode.</summary>
|
||||
public static Vector3 Destination(PlayerInput input,float yaw,float turn,
|
||||
float forwardPitch=ForwardPitch,float backwardPitch=BackwardPitch)
|
||||
{
|
||||
if(!float.IsFinite(yaw)||!float.IsFinite(turn)||!float.IsFinite(forwardPitch)||!float.IsFinite(backwardPitch))
|
||||
throw new ArgumentOutOfRangeException(nameof(yaw));
|
||||
return new(input.Forward?forwardPitch:input.Backward?backwardPitch:0,yaw,-turn);
|
||||
}
|
||||
|
||||
public static JimmyAirInputState Input(JimmyAirInputState state,PlayerInput input,bool supported,
|
||||
float seconds,float maximumSpeed=600)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user