Fix sprite cutoff
This commit is contained in:
@@ -3,12 +3,12 @@
|
|||||||
[ext_resource type="Script" uid="uid://bx1k4yff3m82m" path="res://src/items/thrown/ThrownItem.cs" id="1_wlplc"]
|
[ext_resource type="Script" uid="uid://bx1k4yff3m82m" path="res://src/items/thrown/ThrownItem.cs" id="1_wlplc"]
|
||||||
|
|
||||||
[sub_resource type="BoxShape3D" id="BoxShape3D_s4ym5"]
|
[sub_resource type="BoxShape3D" id="BoxShape3D_s4ym5"]
|
||||||
size = Vector3(0.46632, 0.507293, 0.586082)
|
size = Vector3(1.41135, 1.30761, 0.718334)
|
||||||
|
|
||||||
[sub_resource type="SphereShape3D" id="SphereShape3D_xxdqr"]
|
[sub_resource type="CylinderShape3D" id="CylinderShape3D_xxdqr"]
|
||||||
radius = 0.1
|
height = 0.725098
|
||||||
|
|
||||||
[sub_resource type="ViewportTexture" id="ViewportTexture_xxdqr"]
|
[sub_resource type="ViewportTexture" id="ViewportTexture_6qcu8"]
|
||||||
viewport_path = NodePath("Sprite3D/SubViewportContainer/SubViewport")
|
viewport_path = NodePath("Sprite3D/SubViewportContainer/SubViewport")
|
||||||
|
|
||||||
[node name="Hitbox" type="RigidBody3D"]
|
[node name="Hitbox" type="RigidBody3D"]
|
||||||
@@ -21,7 +21,7 @@ max_contacts_reported = 50
|
|||||||
script = ExtResource("1_wlplc")
|
script = ExtResource("1_wlplc")
|
||||||
|
|
||||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.1, 0)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0295846, 2.16201, -0.066126)
|
||||||
shape = SubResource("BoxShape3D_s4ym5")
|
shape = SubResource("BoxShape3D_s4ym5")
|
||||||
|
|
||||||
[node name="Collision" type="Area3D" parent="."]
|
[node name="Collision" type="Area3D" parent="."]
|
||||||
@@ -30,15 +30,16 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.1, 0)
|
|||||||
collision_layer = 4
|
collision_layer = 4
|
||||||
collision_mask = 2048
|
collision_mask = 2048
|
||||||
|
|
||||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Collision"]
|
[node name="CollisionShape3D2" type="CollisionShape3D" parent="Collision"]
|
||||||
shape = SubResource("SphereShape3D_xxdqr")
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.0090847, 0)
|
||||||
|
shape = SubResource("CylinderShape3D_xxdqr")
|
||||||
|
|
||||||
[node name="Sprite3D" type="Sprite3D" parent="."]
|
[node name="Sprite3D" type="Sprite3D" parent="."]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.1, 0)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.1, 0)
|
||||||
pixel_size = 0.005
|
pixel_size = 0.005
|
||||||
billboard = 2
|
billboard = 2
|
||||||
texture_filter = 0
|
texture_filter = 0
|
||||||
texture = SubResource("ViewportTexture_xxdqr")
|
texture = SubResource("ViewportTexture_6qcu8")
|
||||||
|
|
||||||
[node name="SubViewportContainer" type="SubViewportContainer" parent="Sprite3D"]
|
[node name="SubViewportContainer" type="SubViewportContainer" parent="Sprite3D"]
|
||||||
visibility_layer = 0
|
visibility_layer = 0
|
||||||
@@ -55,10 +56,10 @@ size_flags_vertical = 3
|
|||||||
transparent_bg = true
|
transparent_bg = true
|
||||||
handle_input_locally = false
|
handle_input_locally = false
|
||||||
canvas_cull_mask = 4293918721
|
canvas_cull_mask = 4293918721
|
||||||
size = Vector2i(150, 150)
|
size = Vector2i(500, 500)
|
||||||
render_target_update_mode = 4
|
render_target_update_mode = 4
|
||||||
|
|
||||||
[node name="Sprite" type="Sprite2D" parent="Sprite3D/SubViewportContainer/SubViewport"]
|
[node name="Sprite" type="Sprite2D" parent="Sprite3D/SubViewportContainer/SubViewport"]
|
||||||
unique_name_in_owner = true
|
unique_name_in_owner = true
|
||||||
texture_filter = 1
|
texture_filter = 1
|
||||||
offset = Vector2(75, 75)
|
offset = Vector2(250, 250)
|
||||||
|
|||||||
Reference in New Issue
Block a user