implement physics props
This commit is contained in:
parent
1be53bf7bb
commit
6e783e0e57
9 changed files with 159 additions and 4 deletions
28
Scenes/Props/Physics/ShowroomChair.tscn
Normal file
28
Scenes/Props/Physics/ShowroomChair.tscn
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://db8vuekpyg0fl"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://denf02jj7iwwf" path="res://Models/Furniture/ShowroomChair.glb" id="1_hq6j1"]
|
||||
|
||||
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_lbe82"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_lbe82"]
|
||||
size = Vector3(0.55, 0.6, 0.55)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_domyf"]
|
||||
size = Vector3(0.05, 0.6, 0.55)
|
||||
|
||||
[node name="ShowroomChair" type="Node3D"]
|
||||
|
||||
[node name="RigidBody3D" type="RigidBody3D" parent="."]
|
||||
mass = 5.0
|
||||
physics_material_override = SubResource("PhysicsMaterial_lbe82")
|
||||
|
||||
[node name="Model" parent="RigidBody3D" instance=ExtResource("1_hq6j1")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.5, 0)
|
||||
|
||||
[node name="CollisionShape3D5" type="CollisionShape3D" parent="RigidBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.2, 0)
|
||||
shape = SubResource("BoxShape3D_lbe82")
|
||||
|
||||
[node name="CollisionShape3D6" type="CollisionShape3D" parent="RigidBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.3, 0.4, 0)
|
||||
shape = SubResource("BoxShape3D_domyf")
|
||||
Loading…
Add table
Add a link
Reference in a new issue