feat: implement procedural humanoid animations, modular weapon system, and dummy entity base classes
This commit is contained in:
@@ -36,6 +36,8 @@ var movement_speed: float = 0.0
|
||||
var _anim_time: float = 0.0
|
||||
|
||||
func _ready() -> void:
|
||||
rotation_degrees.y = 180
|
||||
|
||||
var mat := StandardMaterial3D.new()
|
||||
mat.albedo_color = color
|
||||
mat.roughness = 0.8
|
||||
@@ -197,7 +199,6 @@ func set_weapon(script_path: String) -> void:
|
||||
_set_shadows_recursive(w)
|
||||
|
||||
# Force position after the weapon's _build_model() sets it for 1st person
|
||||
# root_pivot is rotated 180 deg around Y, so local +Z is FORWARD and local -X is RIGHT
|
||||
w.position = Vector3(-0.15, 1.0, 0.4)
|
||||
w.rotation_degrees = Vector3(0, 180, 0)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user