yummy
This commit is contained in:
parent
2c6dfcf5d8
commit
fd2d7e73d8
6 changed files with 84 additions and 0 deletions
28
objects/environment/spaghetti/spaghetti.tscn
Normal file
28
objects/environment/spaghetti/spaghetti.tscn
Normal file
|
@ -0,0 +1,28 @@
|
|||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://objects/environment/spaghetti/spaghetti.gd" type="Script" id=1]
|
||||
|
||||
[sub_resource type="PhysicsMaterial" id=3]
|
||||
friction = 0.25
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id=1]
|
||||
radius = 0.5
|
||||
height = 3.0
|
||||
|
||||
[node name="Spaghetti" type="Node2D"]
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="Segment" type="RigidBody2D" parent="."]
|
||||
physics_material_override = SubResource( 3 )
|
||||
|
||||
[node name="Line" type="Line2D" parent="Segment"]
|
||||
points = PoolVector2Array( -2, 0, 2, 0 )
|
||||
width = 1.0
|
||||
default_color = Color( 0.988235, 0.984314, 0.839216, 1 )
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Segment"]
|
||||
rotation = 1.5708
|
||||
shape = SubResource( 1 )
|
||||
|
||||
[node name="Joint" type="PinJoint2D" parent="Segment"]
|
||||
position = Vector2( -1.5, 0 )
|
Loading…
Add table
Add a link
Reference in a new issue