Set physics properties on a PhysicsMaterial. (#365)

* Don't set friction/bounce on KinematicBody.

These are properties only of Rigid and Static bodies.

* Set physics properties on a PhysicsMaterial.

```
The method set_friction has been deprecated and will be removed in the future, use physics material instead.
The method set_bounce has been deprecated and will be removed in the future, use physics material instead.
```

Fixes #364.
This commit is contained in:
Ryan Roden-Corrent
2020-11-22 01:30:02 -05:00
committed by GitHub
parent 70df7d8a1b
commit 27ffa28078
4 changed files with 124 additions and 69 deletions

View File

@@ -219,9 +219,14 @@ def export_physics_controller(escn_file, export_settings, node,
phys_obj = NodeTemplate(phys_name, phys_controller, parent_gd_node)
# OPTIONS FOR ALL PHYSICS TYPES
phys_obj['friction'] = rbd.friction
phys_obj['bounce'] = rbd.restitution
if phys_controller != 'KinematicBody':
physics_mat = InternalResource(
"PhysicsMaterial", node.name + "PhysicsMaterial"
)
physics_mat['friction'] = rbd.friction
physics_mat['bounce'] = rbd.restitution
rid = escn_file.force_add_internal_resource(physics_mat)
phys_obj['physics_material_override'] = "SubResource({})".format(rid)
col_groups = 0
for offset, flag in enumerate(rbd.collision_collections):

View File

@@ -1,11 +1,17 @@
[gd_scene load_steps=1 format=2]
[sub_resource id=1 type="ConvexPolygonShape"]
[sub_resource id=1 type="PhysicsMaterial"]
resource_name = "CubePhysicsMaterial"
friction = 0.5
bounce = 0.0
[sub_resource id=2 type="ConvexPolygonShape"]
resource_name = "Cube"
points = PoolVector3Array(1.0, 1.0, -1.0, 1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, 1.0, -1.0, 1.0, 0.999999, 4.09789, 0.999999, -1.0, 4.09789, -1.0, -1.0, 4.09789, -1.0, 1.0, 4.09789)
[sub_resource id=2 type="ArrayMesh"]
[sub_resource id=3 type="ArrayMesh"]
resource_name = "Cube001"
surfaces/0 = {
@@ -24,12 +30,12 @@ surfaces/0 = {
"morph_arrays":[]
}
[sub_resource id=3 type="ConvexPolygonShape"]
[sub_resource id=4 type="ConvexPolygonShape"]
resource_name = "Cube003"
points = PoolVector3Array(1.0, 1.0, -1.0, 1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, 1.0, -1.0, 1.0, 0.999999, 4.09789, 0.999999, -1.0, 4.09789, -1.0, -1.0, 4.09789, -1.0, 1.0, 4.09789)
[sub_resource id=4 type="Animation"]
[sub_resource id=5 type="Animation"]
resource_name = "Cube003Action001"
step = 0.1
@@ -40,7 +46,7 @@ tracks/0/path = NodePath(".:")
tracks/0/interp = 1
tracks/0/keys = [0.0, 1.0, 0.0, 4.6375, 0.0, -0.707104, 0.00195601, -0.00195601, 0.707104, 0.605, 0.605, 0.605, 0.0416667, 1.0, 0.0, 4.6375, 0.0, -0.707063, 0.00786405, -0.00786405, 0.707063, 0.605, 0.605, 0.605, 0.0833333, 1.0, 0.0, 4.6375, 0.0, -0.706884, 0.0177539, -0.0177539, 0.706884, 0.605, 0.605, 0.605, 0.125, 1.0, 0.0, 4.6375, 0.0, -0.7064, 0.031604, -0.031604, 0.7064, 0.605, 0.605, 0.605, 0.166667, 1.0, 0.0, 4.6375, 0.0, -0.705384, 0.0493253, -0.0493253, 0.705384, 0.605, 0.605, 0.605, 0.208333, 1.0, 0.0, 4.6375, 0.0, -0.703559, 0.0707441, -0.0707441, 0.703559, 0.605, 0.605, 0.605, 0.25, 1.0, 0.0, 4.6375, 0.0, -0.700616, 0.0955859, -0.0955859, 0.700616, 0.605, 0.605, 0.605, 0.291667, 1.0, 0.0, 4.6375, 0.0, -0.696245, 0.123463, -0.123463, 0.696245, 0.605, 0.605, 0.605, 0.333333, 1.0, 0.0, 4.6375, 0.0, -0.690162, 0.15387, -0.15387, 0.690162, 0.605, 0.605, 0.605, 0.375, 1.0, 0.0, 4.6375, 0.0, -0.682153, 0.186191, -0.186191, 0.682153, 0.605, 0.605, 0.605, 0.416667, 1.0, 0.0, 4.6375, 0.0, -0.672104, 0.219719, -0.219719, 0.672104, 0.605, 0.605, 0.605, 0.458333, 1.0, 0.0, 4.6375, 0.0, -0.660031, 0.25369, -0.25369, 0.660031, 0.605, 0.605, 0.605, 0.5, 1.0, 0.0, 4.6375, 0.0, -0.646099, 0.287327, -0.287327, 0.646099, 0.605, 0.605, 0.605, 0.541667, 1.0, 0.0, 4.6375, 0.0, -0.630614, 0.319885, -0.319885, 0.630614, 0.605, 0.605, 0.605, 0.583333, 1.0, 0.0, 4.6375, 0.0, -0.614012, 0.350698, -0.350698, 0.614012, 0.605, 0.605, 0.605, 0.625, 1.0, 0.0, 4.6375, 0.0, -0.596821, 0.379216, -0.379216, 0.596821, 0.605, 0.605, 0.605, 0.666667, 1.0, 0.0, 4.6375, 0.0, -0.579621, 0.405018, -0.405018, 0.579621, 0.605, 0.605, 0.605, 0.708333, 1.0, 0.0, 4.6375, 0.0, -0.563, 0.427821, -0.427821, 0.563, 0.605, 0.605, 0.605, 0.75, 1.0, 0.0, 4.6375, 0.0, -0.547515, 0.447468, -0.447468, 0.547515, 0.605, 0.605, 0.605, 0.791667, 1.0, 0.0, 4.6375, 0.0, -0.53366, 0.463904, -0.463904, 0.53366, 0.605, 0.605, 0.605, 0.833333, 1.0, 0.0, 4.6375, 0.0, -0.521848, 0.477153, -0.477153, 0.521848, 0.605, 0.605, 0.605, 0.875, 1.0, 0.0, 4.6375, 0.0, -0.512396, 0.487289, -0.487289, 0.512396, 0.605, 0.605, 0.605, 0.916667, 1.0, 0.0, 4.6375, 0.0, -0.50553, 0.494408, -0.494408, 0.50553, 0.605, 0.605, 0.605, 0.958333, 1.0, 0.0, 4.6375, 0.0, -0.501381, 0.498615, -0.498615, 0.501381, 0.605, 0.605, 0.605, 1.0, 1.0, 0.0, 4.6375, 0.0, -0.5, 0.5, -0.5, 0.5, 0.605, 0.605, 0.605]
[sub_resource id=5 type="ArrayMesh"]
[sub_resource id=6 type="ArrayMesh"]
resource_name = "Cube002"
surfaces/0 = {
@@ -63,8 +69,7 @@ surfaces/0 = {
[node name="CubePhysics" type="RigidBody" parent="."]
friction = 0.5
bounce = 0.0
physics_material_override = SubResource(1)
transform = Transform(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0)
collision_layer = 1
collision_mask = 1
@@ -76,26 +81,26 @@ sleeping = false
[node name="CubeCollision" type="CollisionShape" parent="CubePhysics"]
transform = Transform(1.0, 0.0, 0.0, 0.0, -4.37114e-08, 1.0, 0.0, -1.0, -4.37114e-08, 0.0, 0.0, 0.0)
shape = SubResource(1)
shape = SubResource(2)
[node name="Cube001" type="MeshInstance" parent="CubePhysics/CubeCollision"]
mesh = SubResource(2)
mesh = SubResource(3)
visible = true
transform = Transform(1.0, 0.0, 0.0, 0.0, -4.37114e-08, -1.0, 0.0, 1.0, -4.37114e-08, 0.0, 0.0, 0.0)
[node name="Cube003Collision" type="CollisionShape" parent="CubePhysics"]
transform = Transform(0.605, 0.0, 0.0, 0.0, -2.64454e-08, 0.605, 0.0, -0.605, -2.64454e-08, 0.0, 4.6375, 0.0)
shape = SubResource(3)
shape = SubResource(4)
[node name="AnimationPlayer" type="AnimationPlayer" parent="CubePhysics/Cube003Collision"]
root_node = NodePath("..:")
anims/Cube.003Action.001 = SubResource(4)
anims/Cube.003Action.001 = SubResource(5)
[node name="Cube002" type="MeshInstance" parent="CubePhysics/Cube003Collision"]
mesh = SubResource(5)
mesh = SubResource(6)
visible = true
transform = Transform(1.65289, 0.0, 0.0, 0.0, -7.22502e-08, -1.65289, 0.0, 1.65289, -7.22502e-08, 0.0, 0.0, 0.0)

View File

@@ -1,11 +1,17 @@
[gd_scene load_steps=1 format=2]
[sub_resource id=1 type="ConvexPolygonShape"]
[sub_resource id=1 type="PhysicsMaterial"]
resource_name = "PhysicsPhysicsMaterial"
friction = 0.5
bounce = 0.0
[sub_resource id=2 type="ConvexPolygonShape"]
resource_name = "Cube002"
points = PoolVector3Array(-0.8, -0.8, -1.2, -0.8, -0.8, 1.2, -0.8, 0.8, -1.2, -0.8, 0.8, 1.2, 0.8, -0.8, -1.2, 0.8, -0.8, 1.2, 0.8, 0.8, -1.2, 0.8, 0.8, 1.2)
[sub_resource id=2 type="ArrayMesh"]
[sub_resource id=3 type="ArrayMesh"]
resource_name = "Cube001"
surfaces/0 = {
@@ -28,8 +34,7 @@ surfaces/0 = {
[node name="PhysicsPhysics" type="RigidBody" parent="."]
friction = 0.5
bounce = 0.0
physics_material_override = SubResource(1)
transform = Transform(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 1.2, 0.0)
collision_layer = 1
collision_mask = 1
@@ -41,7 +46,7 @@ sleeping = false
[node name="PhysicsCollision" type="CollisionShape" parent="PhysicsPhysics"]
transform = Transform(1.0, 0.0, 0.0, 0.0, -4.37114e-08, 1.0, 0.0, -1.0, -4.37114e-08, 0.0, 0.0, 0.0)
shape = SubResource(1)
shape = SubResource(2)
[node name="Rig" type="Skeleton" parent="PhysicsPhysics/PhysicsCollision"]
@@ -86,7 +91,7 @@ bones/5/bound_children = []
[node name="Mesh" type="MeshInstance" parent="PhysicsPhysics/PhysicsCollision/Rig"]
mesh = SubResource(2)
mesh = SubResource(3)
visible = true
transform = Transform(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0)
skeleton = NodePath("..:")

View File

@@ -1,11 +1,17 @@
[gd_scene load_steps=1 format=2]
[sub_resource id=1 type="ConvexPolygonShape"]
[sub_resource id=1 type="PhysicsMaterial"]
resource_name = "ConvexPhysicsMaterial"
friction = 0.5
bounce = 0.0
[sub_resource id=2 type="ConvexPolygonShape"]
resource_name = "Cube002"
points = PoolVector3Array(-4.0, -4.0, -0.3, -4.0, -4.0, 0.3, -4.0, 4.0, -0.3, -4.0, 4.0, 0.3, 4.0, -4.0, -0.3, 4.0, -4.0, 0.3, 4.0, 4.0, -0.3, 4.0, 4.0, 0.3, -4.0, 1.33333, -0.3, -4.0, -1.33333, -0.3, -4.0, -1.33333, 0.3, -4.0, 1.33333, 0.3, 1.33333, 4.0, -0.3, -1.33333, 4.0, -0.3, -1.33333, 4.0, 0.3, 1.33333, 4.0, 0.3, 4.0, -1.33333, -0.3, 4.0, 1.33333, -0.3, 4.0, 1.33333, 0.3, 4.0, -1.33333, 0.3, -1.33333, -4.0, -0.3, 1.33333, -4.0, -0.3, 1.33333, -4.0, 0.3, -1.33333, -4.0, 0.3, 1.33333, 1.33333, 0.3, 1.33333, -1.33333, 0.3, -1.33333, 1.33333, 0.3, -1.33333, -1.33333, 0.3, -1.33333, 1.33333, -0.3, -1.33333, -1.33333, -0.3, 1.33333, 1.33333, -0.3, 1.33333, -1.33333, -0.3)
[sub_resource id=2 type="ArrayMesh"]
[sub_resource id=3 type="ArrayMesh"]
resource_name = "Cube002"
surfaces/0 = {
@@ -24,18 +30,30 @@ surfaces/0 = {
"morph_arrays":[]
}
[sub_resource id=3 type="ConcavePolygonShape"]
[sub_resource id=4 type="PhysicsMaterial"]
resource_name = "ConcavePhysicsMaterial"
friction = 0.5
bounce = 0.0
[sub_resource id=5 type="ConcavePolygonShape"]
resource_name = "Cube001"
data = PoolVector3Array(-4.0, 1.33333, -0.3, -4.0, 4.0, -0.3, -4.0, 1.33333, 0.3, 1.33333, 4.0, -0.3, 4.0, 4.0, -0.3, 1.33333, 4.0, 0.3, 4.0, -1.33333, -0.3, 4.0, -4.0, -0.3, 4.0, -1.33333, 0.3, -1.33333, -4.0, -0.3, -4.0, -4.0, -0.3, -1.33333, -4.0, 0.3, 1.33333, -1.33333, -0.3, 1.33333, -4.0, -0.3, 4.0, -1.33333, -0.3, -1.33333, -1.33333, 0.3, -1.33333, -4.0, 0.3, -4.0, -1.33333, 0.3, 4.0, -1.33333, 0.3, 4.0, -4.0, 0.3, 1.33333, -1.33333, 0.3, 1.33333, -1.33333, 0.3, 1.33333, -4.0, 0.3, -1.33333, -1.33333, 0.3, 4.0, 4.0, 0.3, 4.0, 1.33333, 0.3, 1.33333, 4.0, 0.3, 4.0, 1.33333, 0.3, 4.0, -1.33333, 0.3, 1.33333, 1.33333, 0.3, 1.33333, 4.0, 0.3, 1.33333, 1.33333, 0.3, -1.33333, 4.0, 0.3, -1.33333, -1.33333, 0.3, -1.33333, 1.33333, 0.3, -1.33333, -1.33333, -0.3, -1.33333, 4.0, 0.3, -1.33333, 1.33333, 0.3, -4.0, 4.0, 0.3, -1.33333, 1.33333, 0.3, -1.33333, -1.33333, 0.3, -4.0, 1.33333, 0.3, -4.0, -1.33333, -0.3, -4.0, -4.0, -0.3, -1.33333, -1.33333, -0.3, -1.33333, -1.33333, -0.3, -1.33333, -4.0, -0.3, 1.33333, -1.33333, -0.3, -4.0, 4.0, -0.3, -4.0, 1.33333, -0.3, -1.33333, 4.0, -0.3, -4.0, 1.33333, -0.3, -4.0, -1.33333, -0.3, -1.33333, 1.33333, -0.3, -1.33333, 4.0, -0.3, -1.33333, 1.33333, -0.3, 1.33333, 4.0, -0.3, 1.33333, -1.33333, 0.3, -1.33333, -1.33333, 0.3, 1.33333, -1.33333, -0.3, 1.33333, 4.0, -0.3, 1.33333, 1.33333, -0.3, 4.0, 4.0, -0.3, 1.33333, 1.33333, -0.3, 1.33333, -1.33333, -0.3, 4.0, 1.33333, -0.3, 4.0, -4.0, -0.3, 1.33333, -4.0, -0.3, 4.0, -4.0, 0.3, 1.33333, -4.0, -0.3, -1.33333, -4.0, -0.3, 1.33333, -4.0, 0.3, 4.0, 4.0, -0.3, 4.0, 1.33333, -0.3, 4.0, 4.0, 0.3, 4.0, 1.33333, -0.3, 4.0, -1.33333, -0.3, 4.0, 1.33333, 0.3, -4.0, 4.0, -0.3, -1.33333, 4.0, -0.3, -4.0, 4.0, 0.3, -1.33333, 4.0, -0.3, 1.33333, 4.0, -0.3, -1.33333, 4.0, 0.3, -4.0, -4.0, -0.3, -4.0, -1.33333, -0.3, -4.0, -4.0, 0.3, -4.0, -1.33333, -0.3, -4.0, 1.33333, -0.3, -4.0, -1.33333, 0.3, -1.33333, 1.33333, 0.3, 1.33333, 1.33333, 0.3, -1.33333, 1.33333, -0.3, 1.33333, 1.33333, 0.3, 1.33333, -1.33333, 0.3, 1.33333, 1.33333, -0.3, -4.0, 4.0, -0.3, -4.0, 4.0, 0.3, -4.0, 1.33333, 0.3, 4.0, 4.0, -0.3, 4.0, 4.0, 0.3, 1.33333, 4.0, 0.3, 4.0, -4.0, -0.3, 4.0, -4.0, 0.3, 4.0, -1.33333, 0.3, -4.0, -4.0, -0.3, -4.0, -4.0, 0.3, -1.33333, -4.0, 0.3, 1.33333, -4.0, -0.3, 4.0, -4.0, -0.3, 4.0, -1.33333, -0.3, -1.33333, -4.0, 0.3, -4.0, -4.0, 0.3, -4.0, -1.33333, 0.3, 4.0, -4.0, 0.3, 1.33333, -4.0, 0.3, 1.33333, -1.33333, 0.3, 1.33333, -4.0, 0.3, -1.33333, -4.0, 0.3, -1.33333, -1.33333, 0.3, 4.0, 1.33333, 0.3, 1.33333, 1.33333, 0.3, 1.33333, 4.0, 0.3, 4.0, -1.33333, 0.3, 1.33333, -1.33333, 0.3, 1.33333, 1.33333, 0.3, 1.33333, 1.33333, 0.3, -1.33333, 1.33333, 0.3, -1.33333, 4.0, 0.3, -1.33333, 1.33333, 0.3, -1.33333, 1.33333, -0.3, -1.33333, -1.33333, -0.3, -1.33333, 1.33333, 0.3, -4.0, 1.33333, 0.3, -4.0, 4.0, 0.3, -1.33333, -1.33333, 0.3, -4.0, -1.33333, 0.3, -4.0, 1.33333, 0.3, -4.0, -4.0, -0.3, -1.33333, -4.0, -0.3, -1.33333, -1.33333, -0.3, -1.33333, -4.0, -0.3, 1.33333, -4.0, -0.3, 1.33333, -1.33333, -0.3, -4.0, 1.33333, -0.3, -1.33333, 1.33333, -0.3, -1.33333, 4.0, -0.3, -4.0, -1.33333, -0.3, -1.33333, -1.33333, -0.3, -1.33333, 1.33333, -0.3, -1.33333, 1.33333, -0.3, 1.33333, 1.33333, -0.3, 1.33333, 4.0, -0.3, -1.33333, -1.33333, 0.3, -1.33333, -1.33333, -0.3, 1.33333, -1.33333, -0.3, 1.33333, 1.33333, -0.3, 4.0, 1.33333, -0.3, 4.0, 4.0, -0.3, 1.33333, -1.33333, -0.3, 4.0, -1.33333, -0.3, 4.0, 1.33333, -0.3, 1.33333, -4.0, -0.3, 1.33333, -4.0, 0.3, 4.0, -4.0, 0.3, -1.33333, -4.0, -0.3, -1.33333, -4.0, 0.3, 1.33333, -4.0, 0.3, 4.0, 1.33333, -0.3, 4.0, 1.33333, 0.3, 4.0, 4.0, 0.3, 4.0, -1.33333, -0.3, 4.0, -1.33333, 0.3, 4.0, 1.33333, 0.3, -1.33333, 4.0, -0.3, -1.33333, 4.0, 0.3, -4.0, 4.0, 0.3, 1.33333, 4.0, -0.3, 1.33333, 4.0, 0.3, -1.33333, 4.0, 0.3, -4.0, -1.33333, -0.3, -4.0, -1.33333, 0.3, -4.0, -4.0, 0.3, -4.0, 1.33333, -0.3, -4.0, 1.33333, 0.3, -4.0, -1.33333, 0.3, 1.33333, 1.33333, 0.3, 1.33333, 1.33333, -0.3, -1.33333, 1.33333, -0.3, 1.33333, -1.33333, 0.3, 1.33333, -1.33333, -0.3, 1.33333, 1.33333, -0.3)
[sub_resource id=4 type="CapsuleShape"]
[sub_resource id=6 type="PhysicsMaterial"]
resource_name = "CapsulePhysicsMaterial"
friction = 0.5
bounce = 0.0
[sub_resource id=7 type="CapsuleShape"]
resource_name = "CapsuleCollision"
radius = 0.980785
height = 8.43843
[sub_resource id=5 type="ArrayMesh"]
[sub_resource id=8 type="ArrayMesh"]
resource_name = "Capsule"
surfaces/0 = {
@@ -54,12 +72,18 @@ surfaces/0 = {
"morph_arrays":[]
}
[sub_resource id=6 type="BoxShape"]
[sub_resource id=9 type="PhysicsMaterial"]
resource_name = "PlanePhysicsMaterial"
friction = 0.5
bounce = 0.0
[sub_resource id=10 type="BoxShape"]
resource_name = "PlaneCollision"
extents = Vector3(1.005, 1.0, 0.03)
[sub_resource id=7 type="ArrayMesh"]
[sub_resource id=11 type="ArrayMesh"]
resource_name = "Plane"
surfaces/0 = {
@@ -78,12 +102,18 @@ surfaces/0 = {
"morph_arrays":[]
}
[sub_resource id=8 type="BoxShape"]
[sub_resource id=12 type="PhysicsMaterial"]
resource_name = "BoxPhysicsMaterial"
friction = 0.5
bounce = 0.0
[sub_resource id=13 type="BoxShape"]
resource_name = "BoxCollision"
extents = Vector3(1.0, 1.0, 1.0)
[sub_resource id=9 type="ArrayMesh"]
[sub_resource id=14 type="ArrayMesh"]
resource_name = "Cube"
surfaces/0 = {
@@ -102,12 +132,18 @@ surfaces/0 = {
"morph_arrays":[]
}
[sub_resource id=10 type="SphereShape"]
[sub_resource id=15 type="PhysicsMaterial"]
resource_name = "SpherePhysicsMaterial"
friction = 0.5
bounce = 0.0
[sub_resource id=16 type="SphereShape"]
resource_name = "SphereCollision"
radius = 1.0
[sub_resource id=11 type="ArrayMesh"]
[sub_resource id=17 type="ArrayMesh"]
resource_name = "Sphere"
surfaces/0 = {
@@ -126,12 +162,12 @@ surfaces/0 = {
"morph_arrays":[]
}
[sub_resource id=12 type="SphereShape"]
[sub_resource id=18 type="SphereShape"]
resource_name = "Sphere002Collision"
radius = 0.5
[sub_resource id=13 type="ArrayMesh"]
[sub_resource id=19 type="ArrayMesh"]
resource_name = "Sphere002"
surfaces/0 = {
@@ -150,12 +186,24 @@ surfaces/0 = {
"morph_arrays":[]
}
[sub_resource id=14 type="SphereShape"]
[sub_resource id=20 type="PhysicsMaterial"]
resource_name = "Sphere003PhysicsMaterial"
friction = 0.5
bounce = 0.0
[sub_resource id=21 type="SphereShape"]
resource_name = "Sphere003Collision"
radius = 0.5
[sub_resource id=15 type="ArrayMesh"]
[sub_resource id=22 type="PhysicsMaterial"]
resource_name = "Shared ConvexPhysicsMaterial"
friction = 0.5
bounce = 0.0
[sub_resource id=23 type="ArrayMesh"]
resource_name = "Plane001"
surfaces/0 = {
@@ -178,8 +226,7 @@ surfaces/0 = {
[node name="ConvexPhysics" type="StaticBody" parent="."]
friction = 0.5
bounce = 0.0
physics_material_override = SubResource(1)
transform = Transform(0.96374, 0.265655, -0.0251599, -0.261302, 0.920405, -0.29082, -0.0541004, 0.286849, 0.956447, -1.63934, 3.4047, -4.8708)
collision_layer = 1
collision_mask = 1
@@ -187,18 +234,17 @@ collision_mask = 1
[node name="ConvexCollision" type="CollisionShape" parent="ConvexPhysics"]
transform = Transform(1.0, 0.0, 0.0, 0.0, -4.37114e-08, 1.0, 0.0, -1.0, -4.37114e-08, 0.0, 0.0, 0.0)
shape = SubResource(1)
shape = SubResource(2)
[node name="Convex" type="MeshInstance" parent="ConvexPhysics/ConvexCollision"]
mesh = SubResource(2)
mesh = SubResource(3)
visible = true
transform = Transform(1.0, 0.0, 0.0, 0.0, -4.37114e-08, -1.0, 0.0, 1.0, -4.37114e-08, 0.0, 0.0, 0.0)
[node name="ConcavePhysics" type="StaticBody" parent="."]
friction = 0.5
bounce = 0.0
physics_material_override = SubResource(4)
transform = Transform(0.96374, 0.265655, -0.0251599, -0.256895, 0.949182, 0.181818, 0.072182, -0.168761, 0.98301, -0.713301, 3.11838, 4.68127)
collision_layer = 1
collision_mask = 1
@@ -206,12 +252,11 @@ collision_mask = 1
[node name="ConcaveCollision" type="CollisionShape" parent="ConcavePhysics"]
transform = Transform(1.0, 0.0, 0.0, 0.0, -4.37114e-08, 1.0, 0.0, -1.0, -4.37114e-08, 0.0, 0.0, 0.0)
shape = SubResource(3)
shape = SubResource(5)
[node name="CapsulePhysics" type="RigidBody" parent="."]
friction = 0.5
bounce = 0.0
physics_material_override = SubResource(6)
transform = Transform(0.992644, 0.118059, -0.0268381, -0.0146908, 0.337487, 0.941216, 0.120176, -0.933898, 0.336739, 5.0, 3.32659, 0.0)
collision_layer = 1
collision_mask = 1
@@ -223,18 +268,17 @@ sleeping = false
[node name="CapsuleCollision" type="CollisionShape" parent="CapsulePhysics"]
transform = Transform(1.0, 0.0, 0.0, 0.0, -4.37114e-08, 1.0, 0.0, -1.0, -4.37114e-08, 0.0, 0.0, 0.0)
shape = SubResource(4)
shape = SubResource(7)
[node name="Capsule" type="MeshInstance" parent="CapsulePhysics/CapsuleCollision"]
mesh = SubResource(5)
mesh = SubResource(8)
visible = true
transform = Transform(1.0, 0.0, 0.0, 0.0, -4.37114e-08, -1.0, 0.0, 1.0, -4.37114e-08, 0.0, 0.0, 0.0)
[node name="PlanePhysics" type="StaticBody" parent="."]
friction = 0.5
bounce = 0.0
physics_material_override = SubResource(9)
transform = Transform(10.0, 0.0, 0.0, 0.0, 10.0, 0.0, 0.0, 0.0, 10.0, 0.0, 0.0, 0.0)
collision_layer = 1
collision_mask = 1
@@ -242,18 +286,17 @@ collision_mask = 1
[node name="PlaneCollision" type="CollisionShape" parent="PlanePhysics"]
transform = Transform(1.0, 0.0, 0.0, 0.0, -4.37114e-08, 1.0, 0.0, -1.0, -4.37114e-08, 0.0, 0.0, 0.0)
shape = SubResource(6)
shape = SubResource(10)
[node name="Plane" type="MeshInstance" parent="PlanePhysics/PlaneCollision"]
mesh = SubResource(7)
mesh = SubResource(11)
visible = true
transform = Transform(1.0, 0.0, 0.0, 0.0, -4.37114e-08, -1.0, 0.0, 1.0, -4.37114e-08, 0.0, 0.0, 0.0)
[node name="BoxPhysics" type="RigidBody" parent="."]
friction = 0.5
bounce = 0.0
physics_material_override = SubResource(12)
transform = Transform(0.913362, -0.245509, 0.3248, 0.361883, 0.85509, -0.371298, -0.186577, 0.456669, 0.869852, -3.53607, 6.785, 1.71601)
collision_layer = 1
collision_mask = 1
@@ -265,18 +308,17 @@ sleeping = false
[node name="BoxCollision" type="CollisionShape" parent="BoxPhysics"]
transform = Transform(1.0, 0.0, 0.0, 0.0, -4.37114e-08, 1.0, 0.0, -1.0, -4.37114e-08, 0.0, 0.0, 0.0)
shape = SubResource(8)
shape = SubResource(13)
[node name="Box" type="MeshInstance" parent="BoxPhysics/BoxCollision"]
mesh = SubResource(9)
mesh = SubResource(14)
visible = true
transform = Transform(1.0, 0.0, 0.0, 0.0, -4.37114e-08, -1.0, 0.0, 1.0, -4.37114e-08, 0.0, 0.0, 0.0)
[node name="SpherePhysics" type="RigidBody" parent="."]
friction = 0.5
bounce = 0.0
physics_material_override = SubResource(15)
transform = Transform(0.571517, -0.571372, -0.588984, -0.405765, 0.427091, -0.808052, 0.713249, 0.700804, 0.0122472, -1.85855, 5.54503, 5.84148)
collision_layer = 1
collision_mask = 1
@@ -288,29 +330,28 @@ sleeping = false
[node name="SphereCollision" type="CollisionShape" parent="SpherePhysics"]
transform = Transform(1.0, 0.0, 0.0, 0.0, -4.37114e-08, 1.0, 0.0, -1.0, -4.37114e-08, 0.0, 0.0, 0.0)
shape = SubResource(10)
shape = SubResource(16)
[node name="Sphere" type="MeshInstance" parent="SpherePhysics/SphereCollision"]
mesh = SubResource(11)
mesh = SubResource(17)
visible = true
transform = Transform(1.0, 0.0, 0.0, 0.0, -4.37114e-08, -1.0, 0.0, 1.0, -4.37114e-08, 0.0, 0.0, 0.0)
[node name="Sphere002Collision" type="CollisionShape" parent="SpherePhysics"]
transform = Transform(1.0, 1.30385e-08, 2.98023e-08, 1.49012e-08, -2.97416e-08, 1.0, 2.42144e-08, -1.0, -5.1162e-08, 0.565972, 0.864336, 0.166555)
shape = SubResource(12)
shape = SubResource(18)
[node name="Sphere002" type="MeshInstance" parent="SpherePhysics/Sphere002Collision"]
mesh = SubResource(13)
mesh = SubResource(19)
visible = true
transform = Transform(1.0, 0.0, 0.0, 0.0, -4.37114e-08, -1.0, 0.0, 1.0, -4.37114e-08, 0.0, 0.0, 0.0)
[node name="Sphere003Physics" type="RigidBody" parent="."]
friction = 0.5
bounce = 0.0
physics_material_override = SubResource(20)
transform = Transform(0.571517, -0.571373, -0.588984, -0.405765, 0.427091, -0.808052, 0.713249, 0.700804, 0.0122472, -3.3364, 6.55302, -6.79014)
collision_layer = 1
collision_mask = 1
@@ -322,11 +363,11 @@ sleeping = false
[node name="Sphere003Collision" type="CollisionShape" parent="Sphere003Physics"]
transform = Transform(1.0, 0.0, 0.0, 0.0, -4.37114e-08, 1.0, 0.0, -1.0, -4.37114e-08, 0.0, 0.0, 0.0)
shape = SubResource(14)
shape = SubResource(21)
[node name="Sphere003" type="MeshInstance" parent="Sphere003Physics/Sphere003Collision"]
mesh = SubResource(13)
mesh = SubResource(19)
visible = true
transform = Transform(1.0, 0.0, 0.0, 0.0, -4.37114e-08, -1.0, 0.0, 1.0, -4.37114e-08, 0.0, 0.0, 0.0)
@@ -343,8 +384,7 @@ shadow_enabled = true
[node name="Shared ConvexPhysics" type="StaticBody" parent="."]
friction = 0.5
bounce = 0.0
physics_material_override = SubResource(22)
transform = Transform(0.919077, -0.20923, -0.333948, 0.193581, 0.977827, -0.079879, 0.343256, 0.00876901, 0.939201, 12.9707, 11.1244, 0.153062)
collision_layer = 1
collision_mask = 1
@@ -352,10 +392,10 @@ collision_mask = 1
[node name="Shared ConvexCollision" type="CollisionShape" parent="Shared ConvexPhysics"]
transform = Transform(1.0, 0.0, 0.0, 0.0, -4.37114e-08, 1.0, 0.0, -1.0, -4.37114e-08, 0.0, 0.0, 0.0)
shape = SubResource(1)
shape = SubResource(2)
[node name="planee" type="MeshInstance" parent="Shared ConvexPhysics/Shared ConvexCollision"]
mesh = SubResource(15)
mesh = SubResource(23)
visible = true
transform = Transform(3.23961, -0.00676554, -0.16824, -0.168289, -0.0256584, -3.23952, 0.00542533, 3.24388, -0.0259749, 0.00177574, 0.221902, 0.196647)