fix: modular environment model collision setup
This commit is contained in:
parent
f43b982a74
commit
d8a511c343
26 changed files with 27 additions and 14 deletions
Binary file not shown.
|
|
@ -33,7 +33,7 @@ animation/fps=30
|
|||
animation/trimming=false
|
||||
animation/remove_immutable_tracks=true
|
||||
animation/import_rest_as_RESET=false
|
||||
import_script/path=""
|
||||
import_script/path="uid://cmispk7fiiqh6"
|
||||
materials/extract=0
|
||||
materials/extract_format=0
|
||||
materials/extract_path=""
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -33,7 +33,7 @@ animation/fps=30
|
|||
animation/trimming=false
|
||||
animation/remove_immutable_tracks=true
|
||||
animation/import_rest_as_RESET=false
|
||||
import_script/path=""
|
||||
import_script/path="uid://cmispk7fiiqh6"
|
||||
materials/extract=0
|
||||
materials/extract_format=0
|
||||
materials/extract_path=""
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -33,7 +33,7 @@ animation/fps=30
|
|||
animation/trimming=false
|
||||
animation/remove_immutable_tracks=true
|
||||
animation/import_rest_as_RESET=false
|
||||
import_script/path=""
|
||||
import_script/path="uid://cmispk7fiiqh6"
|
||||
materials/extract=0
|
||||
materials/extract_format=0
|
||||
materials/extract_path=""
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -33,7 +33,7 @@ animation/fps=30
|
|||
animation/trimming=false
|
||||
animation/remove_immutable_tracks=true
|
||||
animation/import_rest_as_RESET=false
|
||||
import_script/path=""
|
||||
import_script/path="uid://cmispk7fiiqh6"
|
||||
materials/extract=0
|
||||
materials/extract_format=0
|
||||
materials/extract_path=""
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -33,7 +33,7 @@ animation/fps=30
|
|||
animation/trimming=false
|
||||
animation/remove_immutable_tracks=true
|
||||
animation/import_rest_as_RESET=false
|
||||
import_script/path=""
|
||||
import_script/path="uid://cmispk7fiiqh6"
|
||||
materials/extract=0
|
||||
materials/extract_format=0
|
||||
materials/extract_path=""
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -33,7 +33,7 @@ animation/fps=30
|
|||
animation/trimming=false
|
||||
animation/remove_immutable_tracks=true
|
||||
animation/import_rest_as_RESET=false
|
||||
import_script/path=""
|
||||
import_script/path="uid://cmispk7fiiqh6"
|
||||
materials/extract=0
|
||||
materials/extract_format=0
|
||||
materials/extract_path=""
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ animation/fps=30
|
|||
animation/trimming=false
|
||||
animation/remove_immutable_tracks=true
|
||||
animation/import_rest_as_RESET=false
|
||||
import_script/path=""
|
||||
import_script/path="uid://cmispk7fiiqh6"
|
||||
materials/extract=0
|
||||
materials/extract_format=0
|
||||
materials/extract_path=""
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -33,7 +33,7 @@ animation/fps=30
|
|||
animation/trimming=false
|
||||
animation/remove_immutable_tracks=true
|
||||
animation/import_rest_as_RESET=false
|
||||
import_script/path=""
|
||||
import_script/path="uid://cmispk7fiiqh6"
|
||||
materials/extract=0
|
||||
materials/extract_format=0
|
||||
materials/extract_path=""
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -33,7 +33,7 @@ animation/fps=30
|
|||
animation/trimming=false
|
||||
animation/remove_immutable_tracks=true
|
||||
animation/import_rest_as_RESET=false
|
||||
import_script/path=""
|
||||
import_script/path="uid://cmispk7fiiqh6"
|
||||
materials/extract=0
|
||||
materials/extract_format=0
|
||||
materials/extract_path=""
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -33,7 +33,7 @@ animation/fps=30
|
|||
animation/trimming=false
|
||||
animation/remove_immutable_tracks=true
|
||||
animation/import_rest_as_RESET=false
|
||||
import_script/path=""
|
||||
import_script/path="uid://cmispk7fiiqh6"
|
||||
materials/extract=0
|
||||
materials/extract_format=0
|
||||
materials/extract_path=""
|
||||
|
|
|
|||
|
|
@ -33,14 +33,13 @@ animation/fps=30
|
|||
animation/trimming=false
|
||||
animation/remove_immutable_tracks=true
|
||||
animation/import_rest_as_RESET=false
|
||||
import_script/path=""
|
||||
import_script/path="uid://cmispk7fiiqh6"
|
||||
materials/extract=0
|
||||
materials/extract_format=0
|
||||
materials/extract_path=""
|
||||
_subresources={
|
||||
"nodes": {
|
||||
"PATH:Wall2x3": {
|
||||
"generate/physics": true,
|
||||
"physics/layer": 3,
|
||||
"physics/mask": 3
|
||||
}
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -33,7 +33,7 @@ animation/fps=30
|
|||
animation/trimming=false
|
||||
animation/remove_immutable_tracks=true
|
||||
animation/import_rest_as_RESET=false
|
||||
import_script/path=""
|
||||
import_script/path="uid://cmispk7fiiqh6"
|
||||
materials/extract=0
|
||||
materials/extract_format=0
|
||||
materials/extract_path=""
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -33,7 +33,7 @@ animation/fps=30
|
|||
animation/trimming=false
|
||||
animation/remove_immutable_tracks=true
|
||||
animation/import_rest_as_RESET=false
|
||||
import_script/path=""
|
||||
import_script/path="uid://cmispk7fiiqh6"
|
||||
materials/extract=0
|
||||
materials/extract_format=0
|
||||
materials/extract_path=""
|
||||
|
|
|
|||
13
project/import_scripts/basic_environment_prop.gd
Normal file
13
project/import_scripts/basic_environment_prop.gd
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
@tool
|
||||
extends EditorScenePostImport
|
||||
|
||||
func import_node_recursive(node : Node):
|
||||
if node != null:
|
||||
if node is StaticBody3D:
|
||||
(node as StaticBody3D).collision_layer = 0b11
|
||||
for child in node.get_children():
|
||||
import_node_recursive(child)
|
||||
|
||||
func _post_import(scene: Node) -> Object:
|
||||
import_node_recursive(scene)
|
||||
return scene # Return the modified root node when you're done.
|
||||
1
project/import_scripts/basic_environment_prop.gd.uid
Normal file
1
project/import_scripts/basic_environment_prop.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://cmispk7fiiqh6
|
||||
Loading…
Add table
Add a link
Reference in a new issue