mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 10:35:34 +00:00
Enemies drop items with speed
This commit is contained in:
parent
632b5cfa6b
commit
95837b75fe
8 changed files with 84 additions and 25 deletions
15
Scenes/Items/PhysicsDropWrapper.tscn
Normal file
15
Scenes/Items/PhysicsDropWrapper.tscn
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://d3hds3dbosfcm"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://q806qngbukt8" path="res://Scripts/Interactables/ItemDrop.cs" id="1_lk7fn"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_k5j4v"]
|
||||
radius = 4.47214
|
||||
|
||||
[node name="PhysicsDropWrapper" type="RigidBody2D"]
|
||||
gravity_scale = 0.0
|
||||
lock_rotation = true
|
||||
linear_damp = 2.5
|
||||
script = ExtResource("1_lk7fn")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_k5j4v")
|
||||
Loading…
Add table
Add a link
Reference in a new issue