forked from team-sg/hero-mark-2
28 lines
779 B
Text
28 lines
779 B
Text
[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 )
|