Implement production vertical slice foundation
This commit is contained in:
1 parent
9d4a89f355
commit
a18e82eb44
104 files changed
+10595
-268
No files matched your search
@@ -0,0 +1,22 @@
|
||||
class_name CameraLookCommand
|
||||
extends RefCounted
|
||||
|
||||
var yaw_delta_radians: float
|
||||
var pitch_delta_radians: float
|
||||
var recenter_requested: bool
|
||||
|
||||
|
||||
func _init(
|
||||
p_yaw_delta_radians: float = 0.0,
|
||||
p_pitch_delta_radians: float = 0.0,
|
||||
p_recenter_requested: bool = false
|
||||
) -> void:
|
||||
yaw_delta_radians = p_yaw_delta_radians
|
||||
pitch_delta_radians = p_pitch_delta_radians
|
||||
recenter_requested = p_recenter_requested
|
||||
|
||||
|
||||
func validation_error() -> String:
|
||||
if not is_finite(yaw_delta_radians) or not is_finite(pitch_delta_radians):
|
||||
return "camera look deltas must be finite"
|
||||
return ""
|
||||
Reference in new issue
Block a user