Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions Escena.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[gd_scene format=3 uid="uid://dvq3f3lgbn2w2"]

[ext_resource type="PackedScene" uid="uid://bqpjkukohh2sn" path="res://ball.tscn" id="1_u2bpn"]
[ext_resource type="PackedScene" uid="uid://bfotyicask2r2" path="res://player.tscn" id="2_1wh3i"]

[sub_resource type="PlaneMesh" id="PlaneMesh_gpcq5"]
size = Vector2(15, 20)

[sub_resource type="BoxShape3D" id="BoxShape3D_324th"]
size = Vector3(15, 0.001, 20)

[node name="Escena" type="Node3D" unique_id=1303625090]

[node name="MeshInstance3D" type="MeshInstance3D" parent="." unique_id=482136501]
mesh = SubResource("PlaneMesh_gpcq5")

[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D" unique_id=387364672]

[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/StaticBody3D" unique_id=1763965659]
shape = SubResource("BoxShape3D_324th")

[node name="Camera3D" type="Camera3D" parent="." unique_id=1511802282]
transform = Transform3D(1, 0, 0, 0, -0.00022694468, 1, 0, -1, -0.00022694468, 0, 5.513579, 0)

[node name="DirectionalLight3D" type="DirectionalLight3D" parent="." unique_id=1301504848]
transform = Transform3D(1, 0, 0, 0, -4.371139e-08, 1, 0, -1, -4.371139e-08, 0, 7.2112, 0)
light_color = Color(0.8106425, 0.9996781, 0.84131616, 1)
light_energy = 0.525

[node name="Ball" parent="." unique_id=2005105486 instance=ExtResource("1_u2bpn")]
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0.5641097, 1.3124999, -0.4209944)

[node name="Player" parent="." unique_id=531167561 instance=ExtResource("2_1wh3i")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.6738801, 1.3716722, 1.8097532)
15 changes: 15 additions & 0 deletions ball.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[gd_scene format=3 uid="uid://bqpjkukohh2sn"]

[sub_resource type="SphereMesh" id="SphereMesh_cbx31"]

[sub_resource type="SphereShape3D" id="SphereShape3D_x8fbi"]

[node name="Ball" type="Node3D" unique_id=2005105486]

[node name="MeshInstance3D" type="MeshInstance3D" parent="." unique_id=1283054121]
mesh = SubResource("SphereMesh_cbx31")

[node name="RigidBody3D" type="RigidBody3D" parent="MeshInstance3D" unique_id=679022217]

[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/RigidBody3D" unique_id=9153378]
shape = SubResource("SphereShape3D_x8fbi")
17 changes: 17 additions & 0 deletions player.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[gd_scene format=3 uid="uid://bfotyicask2r2"]

[sub_resource type="CapsuleMesh" id="CapsuleMesh_sh265"]

[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_4flbx"]
points = PackedVector3Array(-0.12520654, -0.532801, -0.4805069, 0.022783129, 0.4760704, 0.49888408, 0.16971254, 0.5591441, 0.46417162, 0.23105091, -0.8035912, 0.32045516, 0.40741014, 0.651043, -0.24352328, -0.4827893, 0.59484255, 0.082213186, -0.3628679, -0.68231165, 0.2896967, 0.46904355, -0.65452886, -0.06627126, -0.12744367, 0.8427015, -0.33810276, -0.39343542, -0.6839421, -0.24471663, 0.43825462, 0.62330925, 0.20084947, 0.0841477, 0.977454, 0.11479468, -0.06820232, -0.9764576, -0.12927033, 0.20054972, -0.56312895, -0.4514544, -0.18552664, 0.59545326, -0.4534751, -0.27336287, 0.59226835, 0.40775412, -0.0069364863, -0.47682306, 0.49966025, 0.37582088, -0.5886136, 0.31695515, 0.111579016, 0.5630594, -0.48117727, -0.41725034, 0.5278656, -0.27049688, -0.48454633, -0.59697217, -0.06650971, -0.27974695, 0.90856135, 0.05333608, -0.25019687, -0.8807117, 0.20531891, 0.263647, -0.90277094, -0.1273943, 0.29336792, 0.8715263, -0.15719566, 0.3734115, -0.5263189, -0.32824618, 0.4996626, 0.47664148, -0.0068885577, 0.053105574, 0.8750009, 0.32470253, -0.15454252, -0.5908538, 0.4658794, -0.09727988, -0.7823577, -0.39818847, -0.3876489, -0.49817133, 0.31564978, -0.30067965, -0.58799505, -0.38890144)

[node name="Player" type="Node3D" unique_id=531167561]

[node name="MeshInstance3D" type="MeshInstance3D" parent="." unique_id=1420936729]
mesh = SubResource("CapsuleMesh_sh265")

[node name="RigidBody3D" type="RigidBody3D" parent="MeshInstance3D" unique_id=1764176198]
lock_rotation = true

[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/RigidBody3D" unique_id=240296017]
shape = SubResource("ConvexPolygonShape3D_4flbx")