Better ragdoll
This commit is contained in:
@ -19,9 +19,9 @@ func shoot() -> Error:
|
||||
return ERR_CANT_OPEN
|
||||
|
||||
var node: MeshInstance3D = scene.instantiate()
|
||||
node.init(bullet_start_node.global_position, bullet_end_node.global_position)
|
||||
var root := get_tree().get_root()
|
||||
root.add_child(node)
|
||||
node.init(bullet_start_node.position, bullet_end_node.position)
|
||||
#var root := get_tree().get_root()
|
||||
bullet_start_node.add_child(node)
|
||||
return OK
|
||||
else:
|
||||
push_warning("Couldn't generate a bullet trace, no distance node found")
|
||||
|
@ -4,10 +4,11 @@
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ybqvs"]
|
||||
transparency = 1
|
||||
albedo_color = Color(0.917767, 0.596302, 0, 1)
|
||||
albedo_color = Color(0.300204, 0.908317, 1.54018e-06, 0.458824)
|
||||
emission_enabled = true
|
||||
emission = Color(0.454139, 0.861507, 0, 1)
|
||||
emission_energy_multiplier = 4.0
|
||||
emission_energy_multiplier = 16.0
|
||||
distance_fade_min_distance = 2.0
|
||||
|
||||
[node name="BulletTrailGeneric" type="MeshInstance3D"]
|
||||
material_override = SubResource("StandardMaterial3D_ybqvs")
|
||||
|
Reference in New Issue
Block a user