Upload folder using huggingface_hub
Browse files- Ice Hockey.csproj +10 -0
- Ice Hockey.sln +19 -0
- README.md +25 -0
- addons/godot_rl_agents/controller/ai_controller_2d.gd +82 -0
- addons/godot_rl_agents/controller/ai_controller_3d.gd +80 -0
- addons/godot_rl_agents/godot_rl_agents.gd +16 -0
- addons/godot_rl_agents/icon.png +3 -0
- addons/godot_rl_agents/onnx/csharp/ONNXInference.cs +103 -0
- addons/godot_rl_agents/onnx/csharp/SessionConfigurator.cs +131 -0
- addons/godot_rl_agents/onnx/csharp/docs/ONNXInference.xml +31 -0
- addons/godot_rl_agents/onnx/csharp/docs/SessionConfigurator.xml +29 -0
- addons/godot_rl_agents/onnx/wrapper/ONNX_wrapper.gd +24 -0
- addons/godot_rl_agents/plugin.cfg +7 -0
- addons/godot_rl_agents/sensors/sensors_2d/ExampleRaycastSensor2D.tscn +48 -0
- addons/godot_rl_agents/sensors/sensors_2d/ISensor2D.gd +20 -0
- addons/godot_rl_agents/sensors/sensors_2d/RaycastSensor2D.gd +118 -0
- addons/godot_rl_agents/sensors/sensors_2d/RaycastSensor2D.tscn +7 -0
- addons/godot_rl_agents/sensors/sensors_3d/ExampleRaycastSensor3D.tscn +6 -0
- addons/godot_rl_agents/sensors/sensors_3d/ISensor3D.gd +20 -0
- addons/godot_rl_agents/sensors/sensors_3d/RGBCameraSensor3D.gd +11 -0
- addons/godot_rl_agents/sensors/sensors_3d/RGBCameraSensor3D.tscn +42 -0
- addons/godot_rl_agents/sensors/sensors_3d/RaycastSensor3D.gd +166 -0
- addons/godot_rl_agents/sensors/sensors_3d/RaycastSensor3D.tscn +33 -0
- addons/godot_rl_agents/sync.gd +338 -0
- asset-license.txt +4 -0
- assets/table.blend +0 -0
- icon.svg +1 -0
- onnx/model.onnx +3 -0
- project.godot +47 -0
- scenes/GameScene/AIController3D.gd +122 -0
- scenes/GameScene/game_scene.tscn +288 -0
- scenes/GameScene/puck.gd +15 -0
- scenes/GameScene/puck.tscn +71 -0
- scenes/GameScene/pusher.gd +66 -0
- scenes/GameScene/pusher.tscn +0 -0
- scenes/TrainingScene/training_scene.tscn +115 -0
Ice Hockey.csproj
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<Project Sdk="Godot.NET.Sdk/4.1.3">
|
2 |
+
<PropertyGroup>
|
3 |
+
<TargetFramework>net6.0</TargetFramework>
|
4 |
+
<EnableDynamicLoading>true</EnableDynamicLoading>
|
5 |
+
<RootNamespace>GodotRLAgents</RootNamespace>
|
6 |
+
</PropertyGroup>
|
7 |
+
<ItemGroup>
|
8 |
+
<PackageReference Include="Microsoft.ML.OnnxRuntime" Version="1.15.1" />
|
9 |
+
</ItemGroup>
|
10 |
+
</Project>
|
Ice Hockey.sln
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Microsoft Visual Studio Solution File, Format Version 12.00
|
2 |
+
# Visual Studio 2012
|
3 |
+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ice Hockey", "Ice Hockey.csproj", "{8BE5A28E-7EC7-4457-A61E-3F26ED0FF98B}"
|
4 |
+
EndProject
|
5 |
+
Global
|
6 |
+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
7 |
+
Debug|Any CPU = Debug|Any CPU
|
8 |
+
ExportDebug|Any CPU = ExportDebug|Any CPU
|
9 |
+
ExportRelease|Any CPU = ExportRelease|Any CPU
|
10 |
+
EndGlobalSection
|
11 |
+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
12 |
+
{8BE5A28E-7EC7-4457-A61E-3F26ED0FF98B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
13 |
+
{8BE5A28E-7EC7-4457-A61E-3F26ED0FF98B}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
14 |
+
{8BE5A28E-7EC7-4457-A61E-3F26ED0FF98B}.ExportDebug|Any CPU.ActiveCfg = ExportDebug|Any CPU
|
15 |
+
{8BE5A28E-7EC7-4457-A61E-3F26ED0FF98B}.ExportDebug|Any CPU.Build.0 = ExportDebug|Any CPU
|
16 |
+
{8BE5A28E-7EC7-4457-A61E-3F26ED0FF98B}.ExportRelease|Any CPU.ActiveCfg = ExportRelease|Any CPU
|
17 |
+
{8BE5A28E-7EC7-4457-A61E-3F26ED0FF98B}.ExportRelease|Any CPU.Build.0 = ExportRelease|Any CPU
|
18 |
+
EndGlobalSection
|
19 |
+
EndGlobal
|
README.md
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: godot-rl
|
3 |
+
tags:
|
4 |
+
- deep-reinforcement-learning
|
5 |
+
- reinforcement-learning
|
6 |
+
- godot-rl
|
7 |
+
- environments
|
8 |
+
- video-games
|
9 |
+
---
|
10 |
+
|
11 |
+
A RL environment called AirHockey for the Godot Game Engine.
|
12 |
+
|
13 |
+
This environment was created with: https://github.com/edbeeching/godot_rl_agents
|
14 |
+
|
15 |
+
|
16 |
+
## Downloading the environment
|
17 |
+
|
18 |
+
After installing Godot RL Agents, download the environment with:
|
19 |
+
|
20 |
+
```
|
21 |
+
gdrl.env_from_hub -r jtatman/godot_rl_AirHockey
|
22 |
+
```
|
23 |
+
|
24 |
+
|
25 |
+
|
addons/godot_rl_agents/controller/ai_controller_2d.gd
ADDED
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
extends Node2D
|
2 |
+
class_name AIController2D
|
3 |
+
|
4 |
+
@export var reset_after := 1000
|
5 |
+
|
6 |
+
var heuristic := "human"
|
7 |
+
var done := false
|
8 |
+
var reward := 0.0
|
9 |
+
var n_steps := 0
|
10 |
+
var needs_reset := false
|
11 |
+
|
12 |
+
var _player: Node2D
|
13 |
+
|
14 |
+
func _ready():
|
15 |
+
add_to_group("AGENT")
|
16 |
+
|
17 |
+
func init(player: Node2D):
|
18 |
+
_player = player
|
19 |
+
|
20 |
+
#-- Methods that need implementing using the "extend script" option in Godot --#
|
21 |
+
func get_obs() -> Dictionary:
|
22 |
+
assert(false, "the get_obs method is not implemented when extending from ai_controller")
|
23 |
+
return {"obs":[]}
|
24 |
+
|
25 |
+
func get_reward() -> float:
|
26 |
+
assert(false, "the get_reward method is not implemented when extending from ai_controller")
|
27 |
+
return 0.0
|
28 |
+
|
29 |
+
func get_action_space() -> Dictionary:
|
30 |
+
assert(false, "the get get_action_space method is not implemented when extending from ai_controller")
|
31 |
+
return {
|
32 |
+
"example_actions_continous" : {
|
33 |
+
"size": 2,
|
34 |
+
"action_type": "continuous"
|
35 |
+
},
|
36 |
+
"example_actions_discrete" : {
|
37 |
+
"size": 2,
|
38 |
+
"action_type": "discrete"
|
39 |
+
},
|
40 |
+
}
|
41 |
+
|
42 |
+
func set_action(action) -> void:
|
43 |
+
assert(false, "the get set_action method is not implemented when extending from ai_controller")
|
44 |
+
# -----------------------------------------------------------------------------#
|
45 |
+
|
46 |
+
func _physics_process(delta):
|
47 |
+
n_steps += 1
|
48 |
+
if n_steps > reset_after:
|
49 |
+
needs_reset = true
|
50 |
+
|
51 |
+
func get_obs_space():
|
52 |
+
# may need overriding if the obs space is complex
|
53 |
+
var obs = get_obs()
|
54 |
+
return {
|
55 |
+
"obs": {
|
56 |
+
"size": [len(obs["obs"])],
|
57 |
+
"space": "box"
|
58 |
+
},
|
59 |
+
}
|
60 |
+
|
61 |
+
func reset():
|
62 |
+
n_steps = 0
|
63 |
+
needs_reset = false
|
64 |
+
|
65 |
+
func reset_if_done():
|
66 |
+
if done:
|
67 |
+
reset()
|
68 |
+
|
69 |
+
func set_heuristic(h):
|
70 |
+
# sets the heuristic from "human" or "model" nothing to change here
|
71 |
+
heuristic = h
|
72 |
+
|
73 |
+
func get_done():
|
74 |
+
return done
|
75 |
+
|
76 |
+
func set_done_false():
|
77 |
+
done = false
|
78 |
+
|
79 |
+
func zero_reward():
|
80 |
+
reward = 0.0
|
81 |
+
|
82 |
+
|
addons/godot_rl_agents/controller/ai_controller_3d.gd
ADDED
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
extends Node3D
|
2 |
+
class_name AIController3D
|
3 |
+
|
4 |
+
@export var reset_after := 1000
|
5 |
+
|
6 |
+
var heuristic := "human"
|
7 |
+
var done := false
|
8 |
+
var reward := 0.0
|
9 |
+
var n_steps := 0
|
10 |
+
var needs_reset := false
|
11 |
+
|
12 |
+
var _player: Node3D
|
13 |
+
|
14 |
+
func _ready():
|
15 |
+
add_to_group("AGENT")
|
16 |
+
|
17 |
+
func init(player: Node3D):
|
18 |
+
_player = player
|
19 |
+
|
20 |
+
#-- Methods that need implementing using the "extend script" option in Godot --#
|
21 |
+
func get_obs() -> Dictionary:
|
22 |
+
assert(false, "the get_obs method is not implemented when extending from ai_controller")
|
23 |
+
return {"obs":[]}
|
24 |
+
|
25 |
+
func get_reward() -> float:
|
26 |
+
assert(false, "the get_reward method is not implemented when extending from ai_controller")
|
27 |
+
return 0.0
|
28 |
+
|
29 |
+
func get_action_space() -> Dictionary:
|
30 |
+
assert(false, "the get get_action_space method is not implemented when extending from ai_controller")
|
31 |
+
return {
|
32 |
+
"example_actions_continous" : {
|
33 |
+
"size": 2,
|
34 |
+
"action_type": "continuous"
|
35 |
+
},
|
36 |
+
"example_actions_discrete" : {
|
37 |
+
"size": 2,
|
38 |
+
"action_type": "discrete"
|
39 |
+
},
|
40 |
+
}
|
41 |
+
|
42 |
+
func set_action(action) -> void:
|
43 |
+
assert(false, "the get set_action method is not implemented when extending from ai_controller")
|
44 |
+
# -----------------------------------------------------------------------------#
|
45 |
+
|
46 |
+
func _physics_process(delta):
|
47 |
+
n_steps += 1
|
48 |
+
if n_steps > reset_after:
|
49 |
+
needs_reset = true
|
50 |
+
|
51 |
+
func get_obs_space():
|
52 |
+
# may need overriding if the obs space is complex
|
53 |
+
var obs = get_obs()
|
54 |
+
return {
|
55 |
+
"obs": {
|
56 |
+
"size": [len(obs["obs"])],
|
57 |
+
"space": "box"
|
58 |
+
},
|
59 |
+
}
|
60 |
+
|
61 |
+
func reset():
|
62 |
+
n_steps = 0
|
63 |
+
needs_reset = false
|
64 |
+
|
65 |
+
func reset_if_done():
|
66 |
+
if done:
|
67 |
+
reset()
|
68 |
+
|
69 |
+
func set_heuristic(h):
|
70 |
+
# sets the heuristic from "human" or "model" nothing to change here
|
71 |
+
heuristic = h
|
72 |
+
|
73 |
+
func get_done():
|
74 |
+
return done
|
75 |
+
|
76 |
+
func set_done_false():
|
77 |
+
done = false
|
78 |
+
|
79 |
+
func zero_reward():
|
80 |
+
reward = 0.0
|
addons/godot_rl_agents/godot_rl_agents.gd
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@tool
|
2 |
+
extends EditorPlugin
|
3 |
+
|
4 |
+
|
5 |
+
func _enter_tree():
|
6 |
+
# Initialization of the plugin goes here.
|
7 |
+
# Add the new type with a name, a parent type, a script and an icon.
|
8 |
+
add_custom_type("Sync", "Node", preload("sync.gd"), preload("icon.png"))
|
9 |
+
#add_custom_type("RaycastSensor2D2", "Node", preload("raycast_sensor_2d.gd"), preload("icon.png"))
|
10 |
+
|
11 |
+
|
12 |
+
func _exit_tree():
|
13 |
+
# Clean-up of the plugin goes here.
|
14 |
+
# Always remember to remove it from the engine when deactivated.
|
15 |
+
remove_custom_type("Sync")
|
16 |
+
#remove_custom_type("RaycastSensor2D2")
|
addons/godot_rl_agents/icon.png
ADDED
Git LFS Details
|
addons/godot_rl_agents/onnx/csharp/ONNXInference.cs
ADDED
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
using Godot;
|
2 |
+
using Microsoft.ML.OnnxRuntime;
|
3 |
+
using Microsoft.ML.OnnxRuntime.Tensors;
|
4 |
+
using System.Collections.Generic;
|
5 |
+
using System.Linq;
|
6 |
+
|
7 |
+
namespace GodotONNX
|
8 |
+
{
|
9 |
+
/// <include file='docs/ONNXInference.xml' path='docs/members[@name="ONNXInference"]/ONNXInference/*'/>
|
10 |
+
public partial class ONNXInference : GodotObject
|
11 |
+
{
|
12 |
+
|
13 |
+
private InferenceSession session;
|
14 |
+
/// <summary>
|
15 |
+
/// Path to the ONNX model. Use Initialize to change it.
|
16 |
+
/// </summary>
|
17 |
+
private string modelPath;
|
18 |
+
private int batchSize;
|
19 |
+
|
20 |
+
private SessionOptions SessionOpt;
|
21 |
+
|
22 |
+
//init function
|
23 |
+
/// <include file='docs/ONNXInference.xml' path='docs/members[@name="ONNXInference"]/Initialize/*'/>
|
24 |
+
public void Initialize(string Path, int BatchSize)
|
25 |
+
{
|
26 |
+
modelPath = Path;
|
27 |
+
batchSize = BatchSize;
|
28 |
+
SessionOpt = SessionConfigurator.MakeConfiguredSessionOptions();
|
29 |
+
session = LoadModel(modelPath);
|
30 |
+
|
31 |
+
}
|
32 |
+
/// <include file='docs/ONNXInference.xml' path='docs/members[@name="ONNXInference"]/Run/*'/>
|
33 |
+
public Godot.Collections.Dictionary<string, Godot.Collections.Array<float>> RunInference(Godot.Collections.Array<float> obs, int state_ins)
|
34 |
+
{
|
35 |
+
//Current model: Any (Godot Rl Agents)
|
36 |
+
//Expects a tensor of shape [batch_size, input_size] type float named obs and a tensor of shape [batch_size] type float named state_ins
|
37 |
+
|
38 |
+
//Fill the input tensors
|
39 |
+
// create span from inputSize
|
40 |
+
var span = new float[obs.Count]; //There's probably a better way to do this
|
41 |
+
for (int i = 0; i < obs.Count; i++)
|
42 |
+
{
|
43 |
+
span[i] = obs[i];
|
44 |
+
}
|
45 |
+
|
46 |
+
IReadOnlyCollection<NamedOnnxValue> inputs = new List<NamedOnnxValue>
|
47 |
+
{
|
48 |
+
NamedOnnxValue.CreateFromTensor("obs", new DenseTensor<float>(span, new int[] { batchSize, obs.Count })),
|
49 |
+
NamedOnnxValue.CreateFromTensor("state_ins", new DenseTensor<float>(new float[] { state_ins }, new int[] { batchSize }))
|
50 |
+
};
|
51 |
+
IReadOnlyCollection<string> outputNames = new List<string> { "output", "state_outs" }; //ONNX is sensible to these names, as well as the input names
|
52 |
+
|
53 |
+
IDisposableReadOnlyCollection<DisposableNamedOnnxValue> results;
|
54 |
+
//We do not use "using" here so we get a better exception explaination later
|
55 |
+
try
|
56 |
+
{
|
57 |
+
results = session.Run(inputs, outputNames);
|
58 |
+
}
|
59 |
+
catch (OnnxRuntimeException e)
|
60 |
+
{
|
61 |
+
//This error usually means that the model is not compatible with the input, beacause of the input shape (size)
|
62 |
+
GD.Print("Error at inference: ", e);
|
63 |
+
return null;
|
64 |
+
}
|
65 |
+
//Can't convert IEnumerable<float> to Variant, so we have to convert it to an array or something
|
66 |
+
Godot.Collections.Dictionary<string, Godot.Collections.Array<float>> output = new Godot.Collections.Dictionary<string, Godot.Collections.Array<float>>();
|
67 |
+
DisposableNamedOnnxValue output1 = results.First();
|
68 |
+
DisposableNamedOnnxValue output2 = results.Last();
|
69 |
+
Godot.Collections.Array<float> output1Array = new Godot.Collections.Array<float>();
|
70 |
+
Godot.Collections.Array<float> output2Array = new Godot.Collections.Array<float>();
|
71 |
+
|
72 |
+
foreach (float f in output1.AsEnumerable<float>())
|
73 |
+
{
|
74 |
+
output1Array.Add(f);
|
75 |
+
}
|
76 |
+
|
77 |
+
foreach (float f in output2.AsEnumerable<float>())
|
78 |
+
{
|
79 |
+
output2Array.Add(f);
|
80 |
+
}
|
81 |
+
|
82 |
+
output.Add(output1.Name, output1Array);
|
83 |
+
output.Add(output2.Name, output2Array);
|
84 |
+
|
85 |
+
//Output is a dictionary of arrays, ex: { "output" : [0.1, 0.2, 0.3, 0.4, ...], "state_outs" : [0.5, ...]}
|
86 |
+
results.Dispose();
|
87 |
+
return output;
|
88 |
+
}
|
89 |
+
/// <include file='docs/ONNXInference.xml' path='docs/members[@name="ONNXInference"]/Load/*'/>
|
90 |
+
public InferenceSession LoadModel(string Path)
|
91 |
+
{
|
92 |
+
using Godot.FileAccess file = FileAccess.Open(Path, Godot.FileAccess.ModeFlags.Read);
|
93 |
+
byte[] model = file.GetBuffer((int)file.GetLength());
|
94 |
+
//file.Close(); file.Dispose(); //Close the file, then dispose the reference.
|
95 |
+
return new InferenceSession(model, SessionOpt); //Load the model
|
96 |
+
}
|
97 |
+
public void FreeDisposables()
|
98 |
+
{
|
99 |
+
session.Dispose();
|
100 |
+
SessionOpt.Dispose();
|
101 |
+
}
|
102 |
+
}
|
103 |
+
}
|
addons/godot_rl_agents/onnx/csharp/SessionConfigurator.cs
ADDED
@@ -0,0 +1,131 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
using Godot;
|
2 |
+
using Microsoft.ML.OnnxRuntime;
|
3 |
+
|
4 |
+
namespace GodotONNX
|
5 |
+
{
|
6 |
+
/// <include file='docs/SessionConfigurator.xml' path='docs/members[@name="SessionConfigurator"]/SessionConfigurator/*'/>
|
7 |
+
|
8 |
+
public static class SessionConfigurator
|
9 |
+
{
|
10 |
+
public enum ComputeName
|
11 |
+
{
|
12 |
+
CUDA,
|
13 |
+
ROCm,
|
14 |
+
DirectML,
|
15 |
+
CoreML,
|
16 |
+
CPU
|
17 |
+
}
|
18 |
+
|
19 |
+
/// <include file='docs/SessionConfigurator.xml' path='docs/members[@name="SessionConfigurator"]/GetSessionOptions/*'/>
|
20 |
+
public static SessionOptions MakeConfiguredSessionOptions()
|
21 |
+
{
|
22 |
+
SessionOptions sessionOptions = new();
|
23 |
+
SetOptions(sessionOptions);
|
24 |
+
return sessionOptions;
|
25 |
+
}
|
26 |
+
|
27 |
+
private static void SetOptions(SessionOptions sessionOptions)
|
28 |
+
{
|
29 |
+
sessionOptions.LogSeverityLevel = OrtLoggingLevel.ORT_LOGGING_LEVEL_WARNING;
|
30 |
+
ApplySystemSpecificOptions(sessionOptions);
|
31 |
+
}
|
32 |
+
|
33 |
+
/// <include file='docs/SessionConfigurator.xml' path='docs/members[@name="SessionConfigurator"]/SystemCheck/*'/>
|
34 |
+
static public void ApplySystemSpecificOptions(SessionOptions sessionOptions)
|
35 |
+
{
|
36 |
+
//Most code for this function is verbose only, the only reason it exists is to track
|
37 |
+
//implementation progress of the different compute APIs.
|
38 |
+
|
39 |
+
//December 2022: CUDA is not working.
|
40 |
+
|
41 |
+
string OSName = OS.GetName(); //Get OS Name
|
42 |
+
|
43 |
+
//ComputeName ComputeAPI = ComputeCheck(); //Get Compute API
|
44 |
+
// //TODO: Get CPU architecture
|
45 |
+
|
46 |
+
//Linux can use OpenVINO (C#) on x64 and ROCm on x86 (GDNative/C++)
|
47 |
+
//Windows can use OpenVINO (C#) on x64
|
48 |
+
//TODO: try TensorRT instead of CUDA
|
49 |
+
//TODO: Use OpenVINO for Intel Graphics
|
50 |
+
|
51 |
+
// Temporarily using CPU on all platforms to avoid errors detected with DML
|
52 |
+
ComputeName ComputeAPI = ComputeName.CPU;
|
53 |
+
|
54 |
+
//match OS and Compute API
|
55 |
+
GD.Print($"OS: {OSName} Compute API: {ComputeAPI}");
|
56 |
+
|
57 |
+
// CPU is set by default without appending necessary
|
58 |
+
// sessionOptions.AppendExecutionProvider_CPU(0);
|
59 |
+
|
60 |
+
/*
|
61 |
+
switch (OSName)
|
62 |
+
{
|
63 |
+
case "Windows": //Can use CUDA, DirectML
|
64 |
+
if (ComputeAPI is ComputeName.CUDA)
|
65 |
+
{
|
66 |
+
//CUDA
|
67 |
+
//sessionOptions.AppendExecutionProvider_CUDA(0);
|
68 |
+
//sessionOptions.AppendExecutionProvider_DML(0);
|
69 |
+
}
|
70 |
+
else if (ComputeAPI is ComputeName.DirectML)
|
71 |
+
{
|
72 |
+
//DirectML
|
73 |
+
//sessionOptions.AppendExecutionProvider_DML(0);
|
74 |
+
}
|
75 |
+
break;
|
76 |
+
case "X11": //Can use CUDA, ROCm
|
77 |
+
if (ComputeAPI is ComputeName.CUDA)
|
78 |
+
{
|
79 |
+
//CUDA
|
80 |
+
//sessionOptions.AppendExecutionProvider_CUDA(0);
|
81 |
+
}
|
82 |
+
if (ComputeAPI is ComputeName.ROCm)
|
83 |
+
{
|
84 |
+
//ROCm, only works on x86
|
85 |
+
//Research indicates that this has to be compiled as a GDNative plugin
|
86 |
+
//GD.Print("ROCm not supported yet, using CPU.");
|
87 |
+
//sessionOptions.AppendExecutionProvider_CPU(0);
|
88 |
+
}
|
89 |
+
break;
|
90 |
+
case "macOS": //Can use CoreML
|
91 |
+
if (ComputeAPI is ComputeName.CoreML)
|
92 |
+
{ //CoreML
|
93 |
+
//TODO: Needs testing
|
94 |
+
//sessionOptions.AppendExecutionProvider_CoreML(0);
|
95 |
+
//CoreML on ARM64, out of the box, on x64 needs .tar file from GitHub
|
96 |
+
}
|
97 |
+
break;
|
98 |
+
default:
|
99 |
+
GD.Print("OS not Supported.");
|
100 |
+
break;
|
101 |
+
}
|
102 |
+
*/
|
103 |
+
}
|
104 |
+
|
105 |
+
|
106 |
+
/// <include file='docs/SessionConfigurator.xml' path='docs/members[@name="SessionConfigurator"]/ComputeCheck/*'/>
|
107 |
+
public static ComputeName ComputeCheck()
|
108 |
+
{
|
109 |
+
string adapterName = Godot.RenderingServer.GetVideoAdapterName();
|
110 |
+
//string adapterVendor = Godot.RenderingServer.GetVideoAdapterVendor();
|
111 |
+
adapterName = adapterName.ToUpper(new System.Globalization.CultureInfo(""));
|
112 |
+
//TODO: GPU vendors for MacOS, what do they even use these days?
|
113 |
+
|
114 |
+
if (adapterName.Contains("INTEL"))
|
115 |
+
{
|
116 |
+
return ComputeName.DirectML;
|
117 |
+
}
|
118 |
+
if (adapterName.Contains("AMD") || adapterName.Contains("RADEON"))
|
119 |
+
{
|
120 |
+
return ComputeName.DirectML;
|
121 |
+
}
|
122 |
+
if (adapterName.Contains("NVIDIA"))
|
123 |
+
{
|
124 |
+
return ComputeName.CUDA;
|
125 |
+
}
|
126 |
+
|
127 |
+
GD.Print("Graphics Card not recognized."); //Should use CPU
|
128 |
+
return ComputeName.CPU;
|
129 |
+
}
|
130 |
+
}
|
131 |
+
}
|
addons/godot_rl_agents/onnx/csharp/docs/ONNXInference.xml
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<docs>
|
2 |
+
<members name="ONNXInference">
|
3 |
+
<ONNXInference>
|
4 |
+
<summary>
|
5 |
+
The main <c>ONNXInference</c> Class that handles the inference process.
|
6 |
+
</summary>
|
7 |
+
</ONNXInference>
|
8 |
+
<Initialize>
|
9 |
+
<summary>
|
10 |
+
Starts the inference process.
|
11 |
+
</summary>
|
12 |
+
<param name="Path">Path to the ONNX model, expects a path inside resources.</param>
|
13 |
+
<param name="BatchSize">How many observations will the model recieve.</param>
|
14 |
+
</Initialize>
|
15 |
+
<Run>
|
16 |
+
<summary>
|
17 |
+
Runs the given input through the model and returns the output.
|
18 |
+
</summary>
|
19 |
+
<param name="obs">Dictionary containing all observations.</param>
|
20 |
+
<param name="state_ins">How many different agents are creating these observations.</param>
|
21 |
+
<returns>A Dictionary of arrays, containing instructions based on the observations.</returns>
|
22 |
+
</Run>
|
23 |
+
<Load>
|
24 |
+
<summary>
|
25 |
+
Loads the given model into the inference process, using the best Execution provider available.
|
26 |
+
</summary>
|
27 |
+
<param name="Path">Path to the ONNX model, expects a path inside resources.</param>
|
28 |
+
<returns>InferenceSession ready to run.</returns>
|
29 |
+
</Load>
|
30 |
+
</members>
|
31 |
+
</docs>
|
addons/godot_rl_agents/onnx/csharp/docs/SessionConfigurator.xml
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<docs>
|
2 |
+
<members name="SessionConfigurator">
|
3 |
+
<SessionConfigurator>
|
4 |
+
<summary>
|
5 |
+
The main <c>SessionConfigurator</c> Class that handles the execution options and providers for the inference process.
|
6 |
+
</summary>
|
7 |
+
</SessionConfigurator>
|
8 |
+
<GetSessionOptions>
|
9 |
+
<summary>
|
10 |
+
Creates a SessionOptions with all available execution providers.
|
11 |
+
</summary>
|
12 |
+
<returns>SessionOptions with all available execution providers.</returns>
|
13 |
+
</GetSessionOptions>
|
14 |
+
<SystemCheck>
|
15 |
+
<summary>
|
16 |
+
Appends any execution provider available in the current system.
|
17 |
+
</summary>
|
18 |
+
<remarks>
|
19 |
+
This function is mainly verbose for tracking implementation progress of different compute APIs.
|
20 |
+
</remarks>
|
21 |
+
</SystemCheck>
|
22 |
+
<ComputeCheck>
|
23 |
+
<summary>
|
24 |
+
Checks for available GPUs.
|
25 |
+
</summary>
|
26 |
+
<returns>An integer identifier for each compute platform.</returns>
|
27 |
+
</ComputeCheck>
|
28 |
+
</members>
|
29 |
+
</docs>
|
addons/godot_rl_agents/onnx/wrapper/ONNX_wrapper.gd
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
extends Resource
|
2 |
+
class_name ONNXModel
|
3 |
+
var inferencer_script = load("res://addons/godot_rl_agents/onnx/csharp/ONNXInference.cs")
|
4 |
+
|
5 |
+
var inferencer = null
|
6 |
+
|
7 |
+
# Must provide the path to the model and the batch size
|
8 |
+
func _init(model_path, batch_size):
|
9 |
+
inferencer = inferencer_script.new()
|
10 |
+
inferencer.Initialize(model_path, batch_size)
|
11 |
+
|
12 |
+
# This function is the one that will be called from the game,
|
13 |
+
# requires the observation as an array and the state_ins as an int
|
14 |
+
# returns an Array containing the action the model takes.
|
15 |
+
func run_inference(obs : Array, state_ins : int) -> Dictionary:
|
16 |
+
if inferencer == null:
|
17 |
+
printerr("Inferencer not initialized")
|
18 |
+
return {}
|
19 |
+
return inferencer.RunInference(obs, state_ins)
|
20 |
+
|
21 |
+
func _notification(what):
|
22 |
+
if what == NOTIFICATION_PREDELETE:
|
23 |
+
inferencer.FreeDisposables()
|
24 |
+
inferencer.free()
|
addons/godot_rl_agents/plugin.cfg
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[plugin]
|
2 |
+
|
3 |
+
name="GodotRLAgents"
|
4 |
+
description="Custom nodes for the godot rl agents toolkit "
|
5 |
+
author="Edward Beeching"
|
6 |
+
version="0.1"
|
7 |
+
script="godot_rl_agents.gd"
|
addons/godot_rl_agents/sensors/sensors_2d/ExampleRaycastSensor2D.tscn
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[gd_scene load_steps=5 format=3 uid="uid://ddeq7mn1ealyc"]
|
2 |
+
|
3 |
+
[ext_resource type="Script" path="res://addons/godot_rl_agents/sensors/sensors_2d/RaycastSensor2D.gd" id="1"]
|
4 |
+
|
5 |
+
[sub_resource type="GDScript" id="2"]
|
6 |
+
script/source = "extends Node2D
|
7 |
+
|
8 |
+
|
9 |
+
|
10 |
+
func _physics_process(delta: float) -> void:
|
11 |
+
print(\"step start\")
|
12 |
+
|
13 |
+
"
|
14 |
+
|
15 |
+
[sub_resource type="GDScript" id="1"]
|
16 |
+
script/source = "extends RayCast2D
|
17 |
+
|
18 |
+
var steps = 1
|
19 |
+
|
20 |
+
func _physics_process(delta: float) -> void:
|
21 |
+
print(\"processing raycast\")
|
22 |
+
steps += 1
|
23 |
+
if steps % 2:
|
24 |
+
force_raycast_update()
|
25 |
+
|
26 |
+
print(is_colliding())
|
27 |
+
"
|
28 |
+
|
29 |
+
[sub_resource type="CircleShape2D" id="3"]
|
30 |
+
|
31 |
+
[node name="ExampleRaycastSensor2D" type="Node2D"]
|
32 |
+
script = SubResource("2")
|
33 |
+
|
34 |
+
[node name="ExampleAgent" type="Node2D" parent="."]
|
35 |
+
position = Vector2(573, 314)
|
36 |
+
rotation = 0.286234
|
37 |
+
|
38 |
+
[node name="RaycastSensor2D" type="Node2D" parent="ExampleAgent"]
|
39 |
+
script = ExtResource("1")
|
40 |
+
|
41 |
+
[node name="TestRayCast2D" type="RayCast2D" parent="."]
|
42 |
+
script = SubResource("1")
|
43 |
+
|
44 |
+
[node name="StaticBody2D" type="StaticBody2D" parent="."]
|
45 |
+
position = Vector2(1, 52)
|
46 |
+
|
47 |
+
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
|
48 |
+
shape = SubResource("3")
|
addons/godot_rl_agents/sensors/sensors_2d/ISensor2D.gd
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
extends Node2D
|
2 |
+
class_name ISensor2D
|
3 |
+
|
4 |
+
var _obs : Array = []
|
5 |
+
var _active := false
|
6 |
+
|
7 |
+
func get_observation():
|
8 |
+
pass
|
9 |
+
|
10 |
+
func activate():
|
11 |
+
_active = true
|
12 |
+
|
13 |
+
func deactivate():
|
14 |
+
_active = false
|
15 |
+
|
16 |
+
func _update_observation():
|
17 |
+
pass
|
18 |
+
|
19 |
+
func reset():
|
20 |
+
pass
|
addons/godot_rl_agents/sensors/sensors_2d/RaycastSensor2D.gd
ADDED
@@ -0,0 +1,118 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@tool
|
2 |
+
extends ISensor2D
|
3 |
+
class_name RaycastSensor2D
|
4 |
+
|
5 |
+
@export_flags_2d_physics var collision_mask := 1:
|
6 |
+
get: return collision_mask
|
7 |
+
set(value):
|
8 |
+
collision_mask = value
|
9 |
+
_update()
|
10 |
+
|
11 |
+
@export var collide_with_areas := false:
|
12 |
+
get: return collide_with_areas
|
13 |
+
set(value):
|
14 |
+
collide_with_areas = value
|
15 |
+
_update()
|
16 |
+
|
17 |
+
@export var collide_with_bodies := true:
|
18 |
+
get: return collide_with_bodies
|
19 |
+
set(value):
|
20 |
+
collide_with_bodies = value
|
21 |
+
_update()
|
22 |
+
|
23 |
+
@export var n_rays := 16.0:
|
24 |
+
get: return n_rays
|
25 |
+
set(value):
|
26 |
+
n_rays = value
|
27 |
+
_update()
|
28 |
+
|
29 |
+
@export_range(5,200,5.0) var ray_length := 200:
|
30 |
+
get: return ray_length
|
31 |
+
set(value):
|
32 |
+
ray_length = value
|
33 |
+
_update()
|
34 |
+
@export_range(5,360,5.0) var cone_width := 360.0:
|
35 |
+
get: return cone_width
|
36 |
+
set(value):
|
37 |
+
cone_width = value
|
38 |
+
_update()
|
39 |
+
|
40 |
+
@export var debug_draw := true :
|
41 |
+
get: return debug_draw
|
42 |
+
set(value):
|
43 |
+
debug_draw = value
|
44 |
+
_update()
|
45 |
+
|
46 |
+
|
47 |
+
var _angles = []
|
48 |
+
var rays := []
|
49 |
+
|
50 |
+
func _update():
|
51 |
+
if Engine.is_editor_hint():
|
52 |
+
if debug_draw:
|
53 |
+
_spawn_nodes()
|
54 |
+
else:
|
55 |
+
for ray in get_children():
|
56 |
+
if ray is RayCast2D:
|
57 |
+
remove_child(ray)
|
58 |
+
|
59 |
+
func _ready() -> void:
|
60 |
+
_spawn_nodes()
|
61 |
+
|
62 |
+
func _spawn_nodes():
|
63 |
+
for ray in rays:
|
64 |
+
ray.queue_free()
|
65 |
+
rays = []
|
66 |
+
|
67 |
+
_angles = []
|
68 |
+
var step = cone_width / (n_rays)
|
69 |
+
var start = step/2 - cone_width/2
|
70 |
+
|
71 |
+
for i in n_rays:
|
72 |
+
var angle = start + i * step
|
73 |
+
var ray = RayCast2D.new()
|
74 |
+
ray.set_target_position(Vector2(
|
75 |
+
ray_length*cos(deg_to_rad(angle)),
|
76 |
+
ray_length*sin(deg_to_rad(angle))
|
77 |
+
))
|
78 |
+
ray.set_name("node_"+str(i))
|
79 |
+
ray.enabled = true
|
80 |
+
ray.collide_with_areas = collide_with_areas
|
81 |
+
ray.collide_with_bodies = collide_with_bodies
|
82 |
+
ray.collision_mask = collision_mask
|
83 |
+
add_child(ray)
|
84 |
+
rays.append(ray)
|
85 |
+
|
86 |
+
|
87 |
+
_angles.append(start + i * step)
|
88 |
+
|
89 |
+
|
90 |
+
func _physics_process(delta: float) -> void:
|
91 |
+
if self._active:
|
92 |
+
self._obs = calculate_raycasts()
|
93 |
+
|
94 |
+
func get_observation() -> Array:
|
95 |
+
if len(self._obs) == 0:
|
96 |
+
print("obs was null, forcing raycast update")
|
97 |
+
return self.calculate_raycasts()
|
98 |
+
return self._obs
|
99 |
+
|
100 |
+
|
101 |
+
func calculate_raycasts() -> Array:
|
102 |
+
var result = []
|
103 |
+
for ray in rays:
|
104 |
+
ray.force_raycast_update()
|
105 |
+
var distance = _get_raycast_distance(ray)
|
106 |
+
result.append(distance)
|
107 |
+
return result
|
108 |
+
|
109 |
+
func _get_raycast_distance(ray : RayCast2D) -> float :
|
110 |
+
if !ray.is_colliding():
|
111 |
+
return 0.0
|
112 |
+
|
113 |
+
var distance = (global_position - ray.get_collision_point()).length()
|
114 |
+
distance = clamp(distance, 0.0, ray_length)
|
115 |
+
return (ray_length - distance) / ray_length
|
116 |
+
|
117 |
+
|
118 |
+
|
addons/godot_rl_agents/sensors/sensors_2d/RaycastSensor2D.tscn
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[gd_scene load_steps=2 format=3 uid="uid://drvfihk5esgmv"]
|
2 |
+
|
3 |
+
[ext_resource type="Script" path="res://addons/godot_rl_agents/sensors/sensors_2d/RaycastSensor2D.gd" id="1"]
|
4 |
+
|
5 |
+
[node name="RaycastSensor2D" type="Node2D"]
|
6 |
+
script = ExtResource("1")
|
7 |
+
n_rays = 17.0
|
addons/godot_rl_agents/sensors/sensors_3d/ExampleRaycastSensor3D.tscn
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[gd_scene format=3 uid="uid://biu787qh4woik"]
|
2 |
+
|
3 |
+
[node name="ExampleRaycastSensor3D" type="Node3D"]
|
4 |
+
|
5 |
+
[node name="Camera3D" type="Camera3D" parent="."]
|
6 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.804183, 0, 2.70146)
|
addons/godot_rl_agents/sensors/sensors_3d/ISensor3D.gd
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
extends Node3D
|
2 |
+
class_name ISensor3D
|
3 |
+
|
4 |
+
var _obs : Array = []
|
5 |
+
var _active := false
|
6 |
+
|
7 |
+
func get_observation():
|
8 |
+
pass
|
9 |
+
|
10 |
+
func activate():
|
11 |
+
_active = true
|
12 |
+
|
13 |
+
func deactivate():
|
14 |
+
_active = false
|
15 |
+
|
16 |
+
func _update_observation():
|
17 |
+
pass
|
18 |
+
|
19 |
+
func reset():
|
20 |
+
pass
|
addons/godot_rl_agents/sensors/sensors_3d/RGBCameraSensor3D.gd
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
extends Node3D
|
2 |
+
class_name RGBCameraSensor3D
|
3 |
+
var camera_pixels = null
|
4 |
+
|
5 |
+
@onready var camera_texture := $Control/TextureRect/CameraTexture as Sprite2D
|
6 |
+
|
7 |
+
func get_camera_pixel_encoding():
|
8 |
+
return camera_texture.get_texture().get_data().data["data"].hex_encode()
|
9 |
+
|
10 |
+
func get_camera_shape()-> Array:
|
11 |
+
return [$SubViewport.size[0], $SubViewport.size[1], 4]
|
addons/godot_rl_agents/sensors/sensors_3d/RGBCameraSensor3D.tscn
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[gd_scene load_steps=3 format=2]
|
2 |
+
|
3 |
+
[ext_resource path="res://addons/godot_rl_agents/sensors/sensors_3d/RGBCameraSensor3D.gd" type="Script" id=1]
|
4 |
+
|
5 |
+
[sub_resource type="ViewportTexture" id=1]
|
6 |
+
viewport_path = NodePath("SubViewport")
|
7 |
+
|
8 |
+
[node name="RGBCameraSensor3D" type="Node3D"]
|
9 |
+
script = ExtResource( 1 )
|
10 |
+
|
11 |
+
[node name="RemoteTransform3D" type="RemoteTransform3D" parent="."]
|
12 |
+
remote_path = NodePath("../SubViewport/Camera3D")
|
13 |
+
|
14 |
+
[node name="SubViewport" type="SubViewport" parent="."]
|
15 |
+
size = Vector2( 32, 32 )
|
16 |
+
render_target_update_mode = 3
|
17 |
+
|
18 |
+
[node name="Camera3D" type="Camera3D" parent="SubViewport"]
|
19 |
+
near = 0.5
|
20 |
+
|
21 |
+
[node name="Control" type="Control" parent="."]
|
22 |
+
anchor_right = 1.0
|
23 |
+
anchor_bottom = 1.0
|
24 |
+
__meta__ = {
|
25 |
+
"_edit_use_anchors_": false
|
26 |
+
}
|
27 |
+
|
28 |
+
[node name="TextureRect" type="ColorRect" parent="Control"]
|
29 |
+
offset_left = 1096.0
|
30 |
+
offset_top = 534.0
|
31 |
+
offset_right = 1114.0
|
32 |
+
offset_bottom = 552.0
|
33 |
+
scale = Vector2( 10, 10 )
|
34 |
+
color = Color( 0.00784314, 0.00784314, 0.00784314, 1 )
|
35 |
+
__meta__ = {
|
36 |
+
"_edit_use_anchors_": false
|
37 |
+
}
|
38 |
+
|
39 |
+
[node name="CameraTexture" type="Sprite2D" parent="Control/TextureRect"]
|
40 |
+
texture = SubResource( 1 )
|
41 |
+
offset = Vector2( 9, 9 )
|
42 |
+
flip_v = true
|
addons/godot_rl_agents/sensors/sensors_3d/RaycastSensor3D.gd
ADDED
@@ -0,0 +1,166 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@tool
|
2 |
+
extends ISensor3D
|
3 |
+
class_name RayCastSensor3D
|
4 |
+
@export_flags_3d_physics var collision_mask = 1:
|
5 |
+
get: return collision_mask
|
6 |
+
set(value):
|
7 |
+
collision_mask = value
|
8 |
+
_update()
|
9 |
+
@export_flags_3d_physics var boolean_class_mask = 1:
|
10 |
+
get: return boolean_class_mask
|
11 |
+
set(value):
|
12 |
+
boolean_class_mask = value
|
13 |
+
_update()
|
14 |
+
|
15 |
+
@export var n_rays_width := 6.0:
|
16 |
+
get: return n_rays_width
|
17 |
+
set(value):
|
18 |
+
n_rays_width = value
|
19 |
+
_update()
|
20 |
+
|
21 |
+
@export var n_rays_height := 6.0:
|
22 |
+
get: return n_rays_height
|
23 |
+
set(value):
|
24 |
+
n_rays_height = value
|
25 |
+
_update()
|
26 |
+
|
27 |
+
@export var ray_length := 10.0:
|
28 |
+
get: return ray_length
|
29 |
+
set(value):
|
30 |
+
ray_length = value
|
31 |
+
_update()
|
32 |
+
|
33 |
+
@export var cone_width := 60.0:
|
34 |
+
get: return cone_width
|
35 |
+
set(value):
|
36 |
+
cone_width = value
|
37 |
+
_update()
|
38 |
+
|
39 |
+
@export var cone_height := 60.0:
|
40 |
+
get: return cone_height
|
41 |
+
set(value):
|
42 |
+
cone_height = value
|
43 |
+
_update()
|
44 |
+
|
45 |
+
@export var collide_with_areas := false:
|
46 |
+
get: return collide_with_areas
|
47 |
+
set(value):
|
48 |
+
collide_with_areas = value
|
49 |
+
_update()
|
50 |
+
|
51 |
+
@export var collide_with_bodies := true:
|
52 |
+
get: return collide_with_bodies
|
53 |
+
set(value):
|
54 |
+
collide_with_bodies = value
|
55 |
+
_update()
|
56 |
+
|
57 |
+
@export var class_sensor := false
|
58 |
+
|
59 |
+
var rays := []
|
60 |
+
var geo = null
|
61 |
+
|
62 |
+
func _update():
|
63 |
+
if Engine.is_editor_hint():
|
64 |
+
if is_node_ready():
|
65 |
+
_spawn_nodes()
|
66 |
+
|
67 |
+
func _ready() -> void:
|
68 |
+
if Engine.is_editor_hint():
|
69 |
+
if get_child_count() == 0:
|
70 |
+
_spawn_nodes()
|
71 |
+
else:
|
72 |
+
_spawn_nodes()
|
73 |
+
|
74 |
+
func _spawn_nodes():
|
75 |
+
print("spawning nodes")
|
76 |
+
for ray in get_children():
|
77 |
+
ray.queue_free()
|
78 |
+
if geo:
|
79 |
+
geo.clear()
|
80 |
+
#$Lines.remove_points()
|
81 |
+
rays = []
|
82 |
+
|
83 |
+
var horizontal_step = cone_width / (n_rays_width)
|
84 |
+
var vertical_step = cone_height / (n_rays_height)
|
85 |
+
|
86 |
+
var horizontal_start = horizontal_step/2 - cone_width/2
|
87 |
+
var vertical_start = vertical_step/2 - cone_height/2
|
88 |
+
|
89 |
+
var points = []
|
90 |
+
|
91 |
+
for i in n_rays_width:
|
92 |
+
for j in n_rays_height:
|
93 |
+
var angle_w = horizontal_start + i * horizontal_step
|
94 |
+
var angle_h = vertical_start + j * vertical_step
|
95 |
+
#angle_h = 0.0
|
96 |
+
var ray = RayCast3D.new()
|
97 |
+
var cast_to = to_spherical_coords(ray_length, angle_w, angle_h)
|
98 |
+
ray.set_target_position(cast_to)
|
99 |
+
|
100 |
+
points.append(cast_to)
|
101 |
+
|
102 |
+
ray.set_name("node_"+str(i)+" "+str(j))
|
103 |
+
ray.enabled = true
|
104 |
+
ray.collide_with_bodies = collide_with_bodies
|
105 |
+
ray.collide_with_areas = collide_with_areas
|
106 |
+
ray.collision_mask = collision_mask
|
107 |
+
add_child(ray)
|
108 |
+
ray.set_owner(get_tree().edited_scene_root)
|
109 |
+
rays.append(ray)
|
110 |
+
ray.force_raycast_update()
|
111 |
+
|
112 |
+
# if Engine.editor_hint:
|
113 |
+
# _create_debug_lines(points)
|
114 |
+
|
115 |
+
func _create_debug_lines(points):
|
116 |
+
if not geo:
|
117 |
+
geo = ImmediateMesh.new()
|
118 |
+
add_child(geo)
|
119 |
+
|
120 |
+
geo.clear()
|
121 |
+
geo.begin(Mesh.PRIMITIVE_LINES)
|
122 |
+
for point in points:
|
123 |
+
geo.set_color(Color.AQUA)
|
124 |
+
geo.add_vertex(Vector3.ZERO)
|
125 |
+
geo.add_vertex(point)
|
126 |
+
geo.end()
|
127 |
+
|
128 |
+
func display():
|
129 |
+
if geo:
|
130 |
+
geo.display()
|
131 |
+
|
132 |
+
func to_spherical_coords(r, inc, azimuth) -> Vector3:
|
133 |
+
return Vector3(
|
134 |
+
r*sin(deg_to_rad(inc))*cos(deg_to_rad(azimuth)),
|
135 |
+
r*sin(deg_to_rad(azimuth)),
|
136 |
+
r*cos(deg_to_rad(inc))*cos(deg_to_rad(azimuth))
|
137 |
+
)
|
138 |
+
|
139 |
+
func get_observation() -> Array:
|
140 |
+
return self.calculate_raycasts()
|
141 |
+
|
142 |
+
func calculate_raycasts() -> Array:
|
143 |
+
var result = []
|
144 |
+
for ray in rays:
|
145 |
+
ray.set_enabled(true)
|
146 |
+
ray.force_raycast_update()
|
147 |
+
var distance = _get_raycast_distance(ray)
|
148 |
+
|
149 |
+
result.append(distance)
|
150 |
+
if class_sensor:
|
151 |
+
var hit_class = 0
|
152 |
+
if ray.get_collider():
|
153 |
+
var hit_collision_layer = ray.get_collider().collision_layer
|
154 |
+
hit_collision_layer = hit_collision_layer & collision_mask
|
155 |
+
hit_class = (hit_collision_layer & boolean_class_mask) > 0
|
156 |
+
result.append(hit_class)
|
157 |
+
ray.set_enabled(false)
|
158 |
+
return result
|
159 |
+
|
160 |
+
func _get_raycast_distance(ray : RayCast3D) -> float :
|
161 |
+
if !ray.is_colliding():
|
162 |
+
return 0.0
|
163 |
+
|
164 |
+
var distance = (global_transform.origin - ray.get_collision_point()).length()
|
165 |
+
distance = clamp(distance, 0.0, ray_length)
|
166 |
+
return (ray_length - distance) / ray_length
|
addons/godot_rl_agents/sensors/sensors_3d/RaycastSensor3D.tscn
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[gd_scene load_steps=2 format=3 uid="uid://b803cbh1fmy66"]
|
2 |
+
|
3 |
+
[ext_resource type="Script" path="res://addons/godot_rl_agents/sensors/sensors_3d/RaycastSensor3D.gd" id="1"]
|
4 |
+
|
5 |
+
[node name="RaycastSensor3D" type="Node3D"]
|
6 |
+
script = ExtResource("1")
|
7 |
+
n_rays_width = 4.0
|
8 |
+
n_rays_height = 2.0
|
9 |
+
ray_length = 11.0
|
10 |
+
|
11 |
+
[node name="@node_0 0@18991" type="RayCast3D" parent="."]
|
12 |
+
target_position = Vector3(-4.06608, -2.84701, 9.81639)
|
13 |
+
|
14 |
+
[node name="node_0 1" type="RayCast3D" parent="."]
|
15 |
+
target_position = Vector3(-4.06608, 2.84701, 9.81639)
|
16 |
+
|
17 |
+
[node name="@node_1 0@18992" type="RayCast3D" parent="."]
|
18 |
+
target_position = Vector3(-1.38686, -2.84701, 10.5343)
|
19 |
+
|
20 |
+
[node name="@node_1 1@18993" type="RayCast3D" parent="."]
|
21 |
+
target_position = Vector3(-1.38686, 2.84701, 10.5343)
|
22 |
+
|
23 |
+
[node name="@node_2 0@18994" type="RayCast3D" parent="."]
|
24 |
+
target_position = Vector3(1.38686, -2.84701, 10.5343)
|
25 |
+
|
26 |
+
[node name="@node_2 1@18995" type="RayCast3D" parent="."]
|
27 |
+
target_position = Vector3(1.38686, 2.84701, 10.5343)
|
28 |
+
|
29 |
+
[node name="@node_3 0@18996" type="RayCast3D" parent="."]
|
30 |
+
target_position = Vector3(4.06608, -2.84701, 9.81639)
|
31 |
+
|
32 |
+
[node name="@node_3 1@18997" type="RayCast3D" parent="."]
|
33 |
+
target_position = Vector3(4.06608, 2.84701, 9.81639)
|
addons/godot_rl_agents/sync.gd
ADDED
@@ -0,0 +1,338 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
extends Node
|
2 |
+
# --fixed-fps 2000 --disable-render-loop
|
3 |
+
@export_range(1, 10, 1, "or_greater") var action_repeat := 8
|
4 |
+
@export_range(1, 10, 1, "or_greater") var speed_up = 1
|
5 |
+
@export var onnx_model_path := ""
|
6 |
+
|
7 |
+
@onready var start_time = Time.get_ticks_msec()
|
8 |
+
|
9 |
+
const MAJOR_VERSION := "0"
|
10 |
+
const MINOR_VERSION := "3"
|
11 |
+
const DEFAULT_PORT := "11008"
|
12 |
+
const DEFAULT_SEED := "1"
|
13 |
+
var stream : StreamPeerTCP = null
|
14 |
+
var connected = false
|
15 |
+
var message_center
|
16 |
+
var should_connect = true
|
17 |
+
var agents
|
18 |
+
var need_to_send_obs = false
|
19 |
+
var args = null
|
20 |
+
var initialized = false
|
21 |
+
var just_reset = false
|
22 |
+
var onnx_model = null
|
23 |
+
var n_action_steps = 0
|
24 |
+
|
25 |
+
var _action_space : Dictionary
|
26 |
+
var _obs_space : Dictionary
|
27 |
+
|
28 |
+
# Called when the node enters the scene tree for the first time.
|
29 |
+
|
30 |
+
func _ready():
|
31 |
+
await get_tree().root.ready
|
32 |
+
get_tree().set_pause(true)
|
33 |
+
_initialize()
|
34 |
+
await get_tree().create_timer(1.0).timeout
|
35 |
+
get_tree().set_pause(false)
|
36 |
+
|
37 |
+
func _initialize():
|
38 |
+
_get_agents()
|
39 |
+
_obs_space = agents[0].get_obs_space()
|
40 |
+
_action_space = agents[0].get_action_space()
|
41 |
+
args = _get_args()
|
42 |
+
Engine.physics_ticks_per_second = _get_speedup() * 60 # Replace with function body.
|
43 |
+
Engine.time_scale = _get_speedup() * 1.0
|
44 |
+
prints("physics ticks", Engine.physics_ticks_per_second, Engine.time_scale, _get_speedup(), speed_up)
|
45 |
+
|
46 |
+
# Run inference if onnx model path is set, otherwise wait for server connection
|
47 |
+
var run_onnx_model_inference : bool = onnx_model_path != ""
|
48 |
+
if run_onnx_model_inference:
|
49 |
+
assert(FileAccess.file_exists(onnx_model_path), "Onnx Model Path set on Sync node does not exist: " + onnx_model_path)
|
50 |
+
onnx_model = ONNXModel.new(onnx_model_path, 1)
|
51 |
+
_set_heuristic("model")
|
52 |
+
else:
|
53 |
+
connected = connect_to_server()
|
54 |
+
if connected:
|
55 |
+
_set_heuristic("model")
|
56 |
+
_handshake()
|
57 |
+
_send_env_info()
|
58 |
+
else:
|
59 |
+
_set_heuristic("human")
|
60 |
+
|
61 |
+
_set_seed()
|
62 |
+
_set_action_repeat()
|
63 |
+
initialized = true
|
64 |
+
|
65 |
+
func _physics_process(delta):
|
66 |
+
# two modes, human control, agent control
|
67 |
+
# pause tree, send obs, get actions, set actions, unpause tree
|
68 |
+
if n_action_steps % action_repeat != 0:
|
69 |
+
n_action_steps += 1
|
70 |
+
return
|
71 |
+
|
72 |
+
n_action_steps += 1
|
73 |
+
|
74 |
+
if connected:
|
75 |
+
get_tree().set_pause(true)
|
76 |
+
|
77 |
+
if just_reset:
|
78 |
+
just_reset = false
|
79 |
+
var obs = _get_obs_from_agents()
|
80 |
+
|
81 |
+
var reply = {
|
82 |
+
"type": "reset",
|
83 |
+
"obs": obs
|
84 |
+
}
|
85 |
+
_send_dict_as_json_message(reply)
|
86 |
+
# this should go straight to getting the action and setting it checked the agent, no need to perform one phyics tick
|
87 |
+
get_tree().set_pause(false)
|
88 |
+
return
|
89 |
+
|
90 |
+
if need_to_send_obs:
|
91 |
+
need_to_send_obs = false
|
92 |
+
var reward = _get_reward_from_agents()
|
93 |
+
var done = _get_done_from_agents()
|
94 |
+
#_reset_agents_if_done() # this ensures the new observation is from the next env instance : NEEDS REFACTOR
|
95 |
+
|
96 |
+
var obs = _get_obs_from_agents()
|
97 |
+
|
98 |
+
var reply = {
|
99 |
+
"type": "step",
|
100 |
+
"obs": obs,
|
101 |
+
"reward": reward,
|
102 |
+
"done": done
|
103 |
+
}
|
104 |
+
_send_dict_as_json_message(reply)
|
105 |
+
|
106 |
+
var handled = handle_message()
|
107 |
+
|
108 |
+
elif onnx_model != null:
|
109 |
+
var obs : Array = _get_obs_from_agents()
|
110 |
+
|
111 |
+
var actions = []
|
112 |
+
for o in obs:
|
113 |
+
var action = onnx_model.run_inference(o["obs"], 1.0)
|
114 |
+
action["output"] = clamp_array(action["output"], -1.0, 1.0)
|
115 |
+
var action_dict = _extract_action_dict(action["output"])
|
116 |
+
actions.append(action_dict)
|
117 |
+
|
118 |
+
_set_agent_actions(actions)
|
119 |
+
need_to_send_obs = true
|
120 |
+
get_tree().set_pause(false)
|
121 |
+
_reset_agents_if_done()
|
122 |
+
|
123 |
+
else:
|
124 |
+
_reset_agents_if_done()
|
125 |
+
|
126 |
+
func _extract_action_dict(action_array: Array):
|
127 |
+
var index = 0
|
128 |
+
var result = {}
|
129 |
+
for key in _action_space.keys():
|
130 |
+
var size = _action_space[key]["size"]
|
131 |
+
if _action_space[key]["action_type"] == "discrete":
|
132 |
+
result[key] = round(action_array[index])
|
133 |
+
else:
|
134 |
+
result[key] = action_array.slice(index,index+size)
|
135 |
+
index += size
|
136 |
+
|
137 |
+
return result
|
138 |
+
|
139 |
+
func _get_agents():
|
140 |
+
agents = get_tree().get_nodes_in_group("AGENT")
|
141 |
+
|
142 |
+
func _set_heuristic(heuristic):
|
143 |
+
for agent in agents:
|
144 |
+
agent.set_heuristic(heuristic)
|
145 |
+
|
146 |
+
func _handshake():
|
147 |
+
print("performing handshake")
|
148 |
+
|
149 |
+
var json_dict = _get_dict_json_message()
|
150 |
+
assert(json_dict["type"] == "handshake")
|
151 |
+
var major_version = json_dict["major_version"]
|
152 |
+
var minor_version = json_dict["minor_version"]
|
153 |
+
if major_version != MAJOR_VERSION:
|
154 |
+
print("WARNING: major verison mismatch ", major_version, " ", MAJOR_VERSION)
|
155 |
+
if minor_version != MINOR_VERSION:
|
156 |
+
print("WARNING: minor verison mismatch ", minor_version, " ", MINOR_VERSION)
|
157 |
+
|
158 |
+
print("handshake complete")
|
159 |
+
|
160 |
+
func _get_dict_json_message():
|
161 |
+
# returns a dictionary from of the most recent message
|
162 |
+
# this is not waiting
|
163 |
+
while stream.get_available_bytes() == 0:
|
164 |
+
stream.poll()
|
165 |
+
if stream.get_status() != 2:
|
166 |
+
print("server disconnected status, closing")
|
167 |
+
get_tree().quit()
|
168 |
+
return null
|
169 |
+
|
170 |
+
OS.delay_usec(10)
|
171 |
+
|
172 |
+
var message = stream.get_string()
|
173 |
+
var json_data = JSON.parse_string(message)
|
174 |
+
|
175 |
+
return json_data
|
176 |
+
|
177 |
+
func _send_dict_as_json_message(dict):
|
178 |
+
stream.put_string(JSON.stringify(dict))
|
179 |
+
|
180 |
+
func _send_env_info():
|
181 |
+
var json_dict = _get_dict_json_message()
|
182 |
+
assert(json_dict["type"] == "env_info")
|
183 |
+
|
184 |
+
|
185 |
+
var message = {
|
186 |
+
"type" : "env_info",
|
187 |
+
"observation_space": _obs_space,
|
188 |
+
"action_space":_action_space,
|
189 |
+
"n_agents": len(agents)
|
190 |
+
}
|
191 |
+
_send_dict_as_json_message(message)
|
192 |
+
|
193 |
+
func connect_to_server():
|
194 |
+
print("Waiting for one second to allow server to start")
|
195 |
+
OS.delay_msec(1000)
|
196 |
+
print("trying to connect to server")
|
197 |
+
stream = StreamPeerTCP.new()
|
198 |
+
|
199 |
+
# "localhost" was not working on windows VM, had to use the IP
|
200 |
+
var ip = "127.0.0.1"
|
201 |
+
var port = _get_port()
|
202 |
+
var connect = stream.connect_to_host(ip, port)
|
203 |
+
stream.set_no_delay(true) # TODO check if this improves performance or not
|
204 |
+
stream.poll()
|
205 |
+
# Fetch the status until it is either connected (2) or failed to connect (3)
|
206 |
+
while stream.get_status() < 2:
|
207 |
+
stream.poll()
|
208 |
+
return stream.get_status() == 2
|
209 |
+
|
210 |
+
func _get_args():
|
211 |
+
print("getting command line arguments")
|
212 |
+
var arguments = {}
|
213 |
+
for argument in OS.get_cmdline_args():
|
214 |
+
print(argument)
|
215 |
+
if argument.find("=") > -1:
|
216 |
+
var key_value = argument.split("=")
|
217 |
+
arguments[key_value[0].lstrip("--")] = key_value[1]
|
218 |
+
else:
|
219 |
+
# Options without an argument will be present in the dictionary,
|
220 |
+
# with the value set to an empty string.
|
221 |
+
arguments[argument.lstrip("--")] = ""
|
222 |
+
|
223 |
+
return arguments
|
224 |
+
|
225 |
+
func _get_speedup():
|
226 |
+
print(args)
|
227 |
+
return args.get("speedup", str(speed_up)).to_int()
|
228 |
+
|
229 |
+
func _get_port():
|
230 |
+
return args.get("port", DEFAULT_PORT).to_int()
|
231 |
+
|
232 |
+
func _set_seed():
|
233 |
+
var _seed = args.get("env_seed", DEFAULT_SEED).to_int()
|
234 |
+
seed(_seed)
|
235 |
+
|
236 |
+
func _set_action_repeat():
|
237 |
+
action_repeat = args.get("action_repeat", str(action_repeat)).to_int()
|
238 |
+
|
239 |
+
func disconnect_from_server():
|
240 |
+
stream.disconnect_from_host()
|
241 |
+
|
242 |
+
|
243 |
+
|
244 |
+
func handle_message() -> bool:
|
245 |
+
# get json message: reset, step, close
|
246 |
+
var message = _get_dict_json_message()
|
247 |
+
if message["type"] == "close":
|
248 |
+
print("received close message, closing game")
|
249 |
+
get_tree().quit()
|
250 |
+
get_tree().set_pause(false)
|
251 |
+
return true
|
252 |
+
|
253 |
+
if message["type"] == "reset":
|
254 |
+
print("resetting all agents")
|
255 |
+
_reset_all_agents()
|
256 |
+
just_reset = true
|
257 |
+
get_tree().set_pause(false)
|
258 |
+
#print("resetting forcing draw")
|
259 |
+
# RenderingServer.force_draw()
|
260 |
+
# var obs = _get_obs_from_agents()
|
261 |
+
# print("obs ", obs)
|
262 |
+
# var reply = {
|
263 |
+
# "type": "reset",
|
264 |
+
# "obs": obs
|
265 |
+
# }
|
266 |
+
# _send_dict_as_json_message(reply)
|
267 |
+
return true
|
268 |
+
|
269 |
+
if message["type"] == "call":
|
270 |
+
var method = message["method"]
|
271 |
+
var returns = _call_method_on_agents(method)
|
272 |
+
var reply = {
|
273 |
+
"type": "call",
|
274 |
+
"returns": returns
|
275 |
+
}
|
276 |
+
print("calling method from Python")
|
277 |
+
_send_dict_as_json_message(reply)
|
278 |
+
return handle_message()
|
279 |
+
|
280 |
+
if message["type"] == "action":
|
281 |
+
var action = message["action"]
|
282 |
+
_set_agent_actions(action)
|
283 |
+
need_to_send_obs = true
|
284 |
+
get_tree().set_pause(false)
|
285 |
+
return true
|
286 |
+
|
287 |
+
print("message was not handled")
|
288 |
+
return false
|
289 |
+
|
290 |
+
func _call_method_on_agents(method):
|
291 |
+
var returns = []
|
292 |
+
for agent in agents:
|
293 |
+
returns.append(agent.call(method))
|
294 |
+
|
295 |
+
return returns
|
296 |
+
|
297 |
+
|
298 |
+
func _reset_agents_if_done():
|
299 |
+
for agent in agents:
|
300 |
+
if agent.get_done():
|
301 |
+
agent.set_done_false()
|
302 |
+
|
303 |
+
func _reset_all_agents():
|
304 |
+
for agent in agents:
|
305 |
+
agent.needs_reset = true
|
306 |
+
#agent.reset()
|
307 |
+
|
308 |
+
func _get_obs_from_agents():
|
309 |
+
var obs = []
|
310 |
+
for agent in agents:
|
311 |
+
obs.append(agent.get_obs())
|
312 |
+
|
313 |
+
return obs
|
314 |
+
|
315 |
+
func _get_reward_from_agents():
|
316 |
+
var rewards = []
|
317 |
+
for agent in agents:
|
318 |
+
rewards.append(agent.get_reward())
|
319 |
+
agent.zero_reward()
|
320 |
+
return rewards
|
321 |
+
|
322 |
+
func _get_done_from_agents():
|
323 |
+
var dones = []
|
324 |
+
for agent in agents:
|
325 |
+
var done = agent.get_done()
|
326 |
+
if done: agent.set_done_false()
|
327 |
+
dones.append(done)
|
328 |
+
return dones
|
329 |
+
|
330 |
+
func _set_agent_actions(actions):
|
331 |
+
for i in range(len(actions)):
|
332 |
+
agents[i].set_action(actions[i])
|
333 |
+
|
334 |
+
func clamp_array(arr : Array, min:float, max:float):
|
335 |
+
var output : Array = []
|
336 |
+
for a in arr:
|
337 |
+
output.append(clamp(a, min, max))
|
338 |
+
return output
|
asset-license.txt
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
This license is only for the assets in the file "assets\table.blend", and the assets imported from that file used in Godot scenes in this example.
|
2 |
+
|
3 |
+
Author: https://github.com/Ivan-267
|
4 |
+
License: https://creativecommons.org/licenses/by/4.0/
|
assets/table.blend
ADDED
Binary file (986 kB). View file
|
|
icon.svg
ADDED
onnx/model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:33cedc2c8048dbe22fc954cdac87d249832538b5fd4ee2f382aae396c28f332b
|
3 |
+
size 38351
|
project.godot
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
; Engine configuration file.
|
2 |
+
; It's best edited using the editor UI and not directly,
|
3 |
+
; since the parameters that go here are not all obvious.
|
4 |
+
;
|
5 |
+
; Format:
|
6 |
+
; [section] ; section goes between []
|
7 |
+
; param=value ; assign values to parameters
|
8 |
+
|
9 |
+
config_version=5
|
10 |
+
|
11 |
+
[application]
|
12 |
+
|
13 |
+
config/name="AirHockey"
|
14 |
+
run/main_scene="res://scenes/TrainingScene/training_scene.tscn"
|
15 |
+
config/features=PackedStringArray("4.1", "C#", "Forward Plus")
|
16 |
+
config/icon="res://icon.svg"
|
17 |
+
|
18 |
+
[dotnet]
|
19 |
+
|
20 |
+
project/assembly_name="Ice Hockey"
|
21 |
+
|
22 |
+
[editor_plugins]
|
23 |
+
|
24 |
+
enabled=PackedStringArray("res://addons/godot_rl_agents/plugin.cfg")
|
25 |
+
|
26 |
+
[input]
|
27 |
+
|
28 |
+
forward={
|
29 |
+
"deadzone": 0.5,
|
30 |
+
"events": [null, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":87,"key_label":0,"unicode":119,"echo":false,"script":null)
|
31 |
+
]
|
32 |
+
}
|
33 |
+
backward={
|
34 |
+
"deadzone": 0.5,
|
35 |
+
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":83,"key_label":0,"unicode":115,"echo":false,"script":null)
|
36 |
+
]
|
37 |
+
}
|
38 |
+
left={
|
39 |
+
"deadzone": 0.5,
|
40 |
+
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":65,"key_label":0,"unicode":97,"echo":false,"script":null)
|
41 |
+
]
|
42 |
+
}
|
43 |
+
right={
|
44 |
+
"deadzone": 0.5,
|
45 |
+
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":68,"key_label":0,"unicode":100,"echo":false,"script":null)
|
46 |
+
]
|
47 |
+
}
|
scenes/GameScene/AIController3D.gd
ADDED
@@ -0,0 +1,122 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
extends AIController3D
|
2 |
+
|
3 |
+
@export var raycast_sensor: Node3D
|
4 |
+
@export var other_player_raycast_sensor: Node3D
|
5 |
+
@export var puck: RigidBody3D
|
6 |
+
|
7 |
+
var raycast_sensor_previous_frame
|
8 |
+
var other_player_raycast_sensor_previous_frame
|
9 |
+
|
10 |
+
const POSITION_NORMALIZATION_FACTOR: float = 6.50
|
11 |
+
const VELOCITY_NORMALIZATION_FACTOR: float = 5.8
|
12 |
+
|
13 |
+
func _physics_process(delta):
|
14 |
+
n_steps += 1
|
15 |
+
if n_steps > reset_after:
|
16 |
+
needs_reset = true
|
17 |
+
done = true
|
18 |
+
|
19 |
+
func get_obs() -> Dictionary:
|
20 |
+
# Positions and velocities are converted to the player's frame of reference
|
21 |
+
# Scaled to be mostly within the -1 to 1 range
|
22 |
+
|
23 |
+
var puck_position = (
|
24 |
+
_player.to_local(puck.global_position) /
|
25 |
+
POSITION_NORMALIZATION_FACTOR
|
26 |
+
)
|
27 |
+
var puck_velocity = (
|
28 |
+
(_player.global_transform.basis.inverse() *
|
29 |
+
puck.linear_velocity) /
|
30 |
+
VELOCITY_NORMALIZATION_FACTOR
|
31 |
+
)
|
32 |
+
var player_velocity = (
|
33 |
+
(_player.global_transform.basis.inverse() *
|
34 |
+
_player.linear_velocity) /
|
35 |
+
VELOCITY_NORMALIZATION_FACTOR
|
36 |
+
)
|
37 |
+
var goal_position = (
|
38 |
+
_player.to_local(_player.goal.global_position) /
|
39 |
+
POSITION_NORMALIZATION_FACTOR
|
40 |
+
)
|
41 |
+
|
42 |
+
var other_player_relative_position = (
|
43 |
+
_player.to_local(_player.other_player.global_position) /
|
44 |
+
POSITION_NORMALIZATION_FACTOR
|
45 |
+
)
|
46 |
+
var other_player_velocity = (
|
47 |
+
(_player.global_transform.basis.inverse() *
|
48 |
+
_player.other_player.linear_velocity) /
|
49 |
+
VELOCITY_NORMALIZATION_FACTOR
|
50 |
+
)
|
51 |
+
var other_player_goal_position = (
|
52 |
+
_player.to_local(_player.other_player.goal.global_position) /
|
53 |
+
POSITION_NORMALIZATION_FACTOR
|
54 |
+
)
|
55 |
+
|
56 |
+
var obs = [
|
57 |
+
# How much of the episode has elapsed
|
58 |
+
n_steps / float(reset_after),
|
59 |
+
puck_position.x,
|
60 |
+
puck_position.z,
|
61 |
+
player_velocity.x,
|
62 |
+
player_velocity.z,
|
63 |
+
puck_velocity.x,
|
64 |
+
puck_velocity.z,
|
65 |
+
goal_position.x,
|
66 |
+
goal_position.z,
|
67 |
+
other_player_relative_position.x,
|
68 |
+
other_player_relative_position.z,
|
69 |
+
other_player_velocity.x,
|
70 |
+
other_player_velocity.z,
|
71 |
+
other_player_goal_position.x,
|
72 |
+
other_player_goal_position.z
|
73 |
+
]
|
74 |
+
|
75 |
+
# Information for the current and previous frame from raycast sensors
|
76 |
+
# (using two frames to include information about velocity)
|
77 |
+
var ray_obs = raycast_sensor.get_observation()
|
78 |
+
obs.append_array(ray_obs)
|
79 |
+
|
80 |
+
# If there is not a previous frame, repeat the current frame
|
81 |
+
if not raycast_sensor_previous_frame:
|
82 |
+
raycast_sensor_previous_frame = ray_obs
|
83 |
+
|
84 |
+
obs.append_array(raycast_sensor_previous_frame)
|
85 |
+
|
86 |
+
raycast_sensor_previous_frame = ray_obs
|
87 |
+
|
88 |
+
var other_player_ray_obs = other_player_raycast_sensor.get_observation()
|
89 |
+
obs.append_array(other_player_ray_obs)
|
90 |
+
|
91 |
+
if not other_player_raycast_sensor_previous_frame:
|
92 |
+
other_player_raycast_sensor_previous_frame = other_player_ray_obs
|
93 |
+
|
94 |
+
obs.append_array(other_player_raycast_sensor_previous_frame)
|
95 |
+
|
96 |
+
other_player_raycast_sensor_previous_frame = other_player_ray_obs
|
97 |
+
|
98 |
+
return {"obs": obs}
|
99 |
+
|
100 |
+
func reset():
|
101 |
+
raycast_sensor_previous_frame = null
|
102 |
+
other_player_raycast_sensor_previous_frame = null
|
103 |
+
n_steps = 0
|
104 |
+
needs_reset = false
|
105 |
+
|
106 |
+
func get_reward() -> float:
|
107 |
+
return reward
|
108 |
+
|
109 |
+
func get_action_space() -> Dictionary:
|
110 |
+
return {
|
111 |
+
"move" : {
|
112 |
+
"size": 2,
|
113 |
+
"action_type": "continuous"
|
114 |
+
}
|
115 |
+
}
|
116 |
+
|
117 |
+
func set_action(action) -> void:
|
118 |
+
_player.requested_movement = Vector3(
|
119 |
+
clampf(action.move[0], -1, 1),
|
120 |
+
0,
|
121 |
+
clampf(action.move[1], -1, 1)
|
122 |
+
)
|
scenes/GameScene/game_scene.tscn
ADDED
@@ -0,0 +1,288 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[gd_scene load_steps=16 format=3 uid="uid://bsicj1i5eb7rm"]
|
2 |
+
|
3 |
+
[ext_resource type="PackedScene" uid="uid://wq350orb0r51" path="res://scenes/GameScene/pusher.tscn" id="1_ru1sq"]
|
4 |
+
[ext_resource type="PackedScene" uid="uid://dtj1k6ombd4qm" path="res://scenes/GameScene/puck.tscn" id="2_qvw6c"]
|
5 |
+
[ext_resource type="Script" path="res://scenes/GameScene/puck.gd" id="3_ai667"]
|
6 |
+
|
7 |
+
[sub_resource type="BoxShape3D" id="BoxShape3D_x671e"]
|
8 |
+
size = Vector3(4.5, 0.25, 6.5)
|
9 |
+
|
10 |
+
[sub_resource type="BoxShape3D" id="BoxShape3D_lolix"]
|
11 |
+
size = Vector3(0.25, 1.5, 6.5)
|
12 |
+
|
13 |
+
[sub_resource type="BoxShape3D" id="BoxShape3D_vbpub"]
|
14 |
+
size = Vector3(4.5, 1.5, 0.25)
|
15 |
+
|
16 |
+
[sub_resource type="BoxShape3D" id="BoxShape3D_8mfa3"]
|
17 |
+
size = Vector3(0.165072, 1.5, 0.25)
|
18 |
+
|
19 |
+
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_qk2kn"]
|
20 |
+
resource_name = "Material"
|
21 |
+
vertex_color_use_as_albedo = true
|
22 |
+
albedo_color = Color(0.139031, 0.139031, 0.139031, 1)
|
23 |
+
roughness = 0.817365
|
24 |
+
|
25 |
+
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_kf563"]
|
26 |
+
resource_name = "Material.001"
|
27 |
+
vertex_color_use_as_albedo = true
|
28 |
+
albedo_color = Color(0.498487, 0.602323, 1, 1)
|
29 |
+
roughness = 0.17
|
30 |
+
|
31 |
+
[sub_resource type="ArrayMesh" id="ArrayMesh_m66dv"]
|
32 |
+
_surfaces = [{
|
33 |
+
"aabb": AABB(-2.25, -0.174227, -3.25, 4.5, 0.55001, 6.5),
|
34 |
+
"format": 4097,
|
35 |
+
"index_count": 282,
|
36 |
+
"index_data": PackedByteArray(44, 0, 2, 0, 6, 0, 44, 0, 21, 0, 2, 0, 32, 0, 6, 0, 4, 0, 32, 0, 45, 0, 6, 0, 61, 0, 51, 0, 60, 0, 51, 0, 21, 0, 44, 0, 21, 0, 63, 0, 26, 0, 21, 0, 62, 0, 63, 0, 61, 0, 21, 0, 51, 0, 21, 0, 61, 0, 62, 0, 20, 0, 0, 0, 2, 0, 20, 0, 9, 0, 0, 0, 8, 0, 4, 0, 0, 0, 8, 0, 33, 0, 4, 0, 3, 0, 6, 0, 2, 0, 3, 0, 7, 0, 6, 0, 7, 0, 4, 0, 6, 0, 7, 0, 5, 0, 4, 0, 5, 0, 3, 0, 1, 0, 5, 0, 7, 0, 3, 0, 1, 0, 2, 0, 0, 0, 1, 0, 3, 0, 2, 0, 5, 0, 0, 0, 4, 0, 5, 0, 1, 0, 0, 0, 50, 0, 32, 0, 39, 0, 50, 0, 45, 0, 32, 0, 14, 0, 20, 0, 27, 0, 14, 0, 9, 0, 20, 0, 8, 0, 0, 0, 10, 0, 10, 0, 0, 0, 11, 0, 11, 0, 0, 0, 12, 0, 12, 0, 0, 0, 13, 0, 13, 0, 0, 0, 9, 0, 20, 0, 2, 0, 22, 0, 22, 0, 2, 0, 23, 0, 23, 0, 2, 0, 24, 0, 24, 0, 2, 0, 25, 0, 25, 0, 2, 0, 21, 0, 32, 0, 4, 0, 34, 0, 34, 0, 4, 0, 35, 0, 35, 0, 4, 0, 36, 0, 36, 0, 4, 0, 37, 0, 37, 0, 4, 0, 33, 0, 44, 0, 6, 0, 46, 0, 46, 0, 6, 0, 47, 0, 47, 0, 6, 0, 48, 0, 48, 0, 6, 0, 49, 0, 49, 0, 6, 0, 45, 0, 8, 0, 19, 0, 15, 0, 8, 0, 10, 0, 19, 0, 10, 0, 18, 0, 19, 0, 10, 0, 11, 0, 18, 0, 11, 0, 17, 0, 18, 0, 11, 0, 12, 0, 17, 0, 12, 0, 16, 0, 17, 0, 12, 0, 13, 0, 16, 0, 13, 0, 14, 0, 16, 0, 13, 0, 9, 0, 14, 0, 50, 0, 49, 0, 45, 0, 50, 0, 52, 0, 49, 0, 52, 0, 48, 0, 49, 0, 52, 0, 53, 0, 48, 0, 53, 0, 47, 0, 48, 0, 53, 0, 54, 0, 47, 0, 54, 0, 46, 0, 47, 0, 54, 0, 55, 0, 46, 0, 55, 0, 44, 0, 46, 0, 55, 0, 51, 0, 44, 0, 20, 0, 31, 0, 27, 0, 20, 0, 22, 0, 31, 0, 22, 0, 30, 0, 31, 0, 22, 0, 23, 0, 30, 0, 23, 0, 29, 0, 30, 0, 23, 0, 24, 0, 29, 0, 24, 0, 28, 0, 29, 0, 24, 0, 25, 0, 28, 0, 25, 0, 26, 0, 28, 0, 25, 0, 21, 0, 26, 0, 32, 0, 43, 0, 39, 0, 32, 0, 34, 0, 43, 0, 34, 0, 42, 0, 43, 0, 34, 0, 35, 0, 42, 0, 35, 0, 41, 0, 42, 0, 35, 0, 36, 0, 41, 0, 36, 0, 40, 0, 41, 0, 36, 0, 37, 0, 40, 0, 37, 0, 38, 0, 40, 0, 37, 0, 33, 0, 38, 0, 59, 0, 15, 0, 58, 0, 15, 0, 33, 0, 8, 0, 33, 0, 57, 0, 38, 0, 33, 0, 56, 0, 57, 0, 59, 0, 33, 0, 15, 0, 59, 0, 56, 0, 33, 0),
|
37 |
+
"lods": [1.73093, PackedByteArray(44, 0, 2, 0, 6, 0, 44, 0, 21, 0, 2, 0, 25, 0, 2, 0, 21, 0, 25, 0, 0, 0, 2, 0, 25, 0, 9, 0, 0, 0, 13, 0, 0, 0, 9, 0, 13, 0, 4, 0, 0, 0, 13, 0, 33, 0, 4, 0, 45, 0, 4, 0, 33, 0, 45, 0, 6, 0, 4, 0, 47, 0, 6, 0, 45, 0, 46, 0, 6, 0, 47, 0, 44, 0, 6, 0, 46, 0, 61, 0, 51, 0, 60, 0, 61, 0, 21, 0, 51, 0, 21, 0, 61, 0, 62, 0, 21, 0, 62, 0, 63, 0, 21, 0, 63, 0, 26, 0, 51, 0, 21, 0, 44, 0, 55, 0, 51, 0, 44, 0, 55, 0, 44, 0, 46, 0, 54, 0, 55, 0, 46, 0, 54, 0, 46, 0, 47, 0, 25, 0, 21, 0, 26, 0, 25, 0, 26, 0, 28, 0, 25, 0, 28, 0, 29, 0, 25, 0, 29, 0, 30, 0, 25, 0, 30, 0, 31, 0, 14, 0, 9, 0, 25, 0, 13, 0, 9, 0, 14, 0, 13, 0, 14, 0, 16, 0, 13, 0, 16, 0, 17, 0, 13, 0, 17, 0, 18, 0, 13, 0, 18, 0, 19, 0, 13, 0, 19, 0, 15, 0, 15, 0, 33, 0, 13, 0, 3, 0, 6, 0, 2, 0, 3, 0, 7, 0, 6, 0, 7, 0, 4, 0, 6, 0, 7, 0, 5, 0, 4, 0, 5, 0, 3, 0, 1, 0, 5, 0, 7, 0, 3, 0, 1, 0, 2, 0, 0, 0, 1, 0, 3, 0, 2, 0, 5, 0, 0, 0, 4, 0, 5, 0, 1, 0, 0, 0, 50, 0, 45, 0, 39, 0, 45, 0, 43, 0, 39, 0, 50, 0, 52, 0, 45, 0, 52, 0, 53, 0, 45, 0, 53, 0, 47, 0, 45, 0, 53, 0, 54, 0, 47, 0, 45, 0, 33, 0, 38, 0, 33, 0, 57, 0, 38, 0, 33, 0, 56, 0, 57, 0, 59, 0, 56, 0, 33, 0, 59, 0, 33, 0, 15, 0, 59, 0, 15, 0, 58, 0, 14, 0, 25, 0, 27, 0, 25, 0, 31, 0, 27, 0, 45, 0, 42, 0, 43, 0, 45, 0, 41, 0, 42, 0, 45, 0, 40, 0, 41, 0, 45, 0, 38, 0, 40, 0)],
|
38 |
+
"name": "Material",
|
39 |
+
"primitive": 3,
|
40 |
+
"vertex_count": 64,
|
41 |
+
"vertex_data": PackedByteArray(182, 255, 15, 64, 88, 101, 192, 62, 182, 255, 79, 192, 0, 0, 16, 64, 132, 104, 50, 190, 0, 0, 80, 192, 182, 255, 15, 64, 88, 101, 192, 62, 182, 255, 79, 64, 0, 0, 16, 64, 132, 104, 50, 190, 0, 0, 80, 64, 182, 255, 15, 192, 88, 101, 192, 62, 182, 255, 79, 192, 0, 0, 16, 192, 132, 104, 50, 190, 0, 0, 80, 192, 182, 255, 15, 192, 88, 101, 192, 62, 182, 255, 79, 64, 0, 0, 16, 192, 132, 104, 50, 190, 0, 0, 80, 64, 225, 238, 205, 63, 88, 101, 192, 62, 0, 0, 64, 192, 0, 0, 0, 64, 88, 101, 192, 62, 112, 247, 38, 192, 149, 103, 221, 63, 88, 101, 192, 62, 88, 198, 62, 192, 151, 92, 235, 63, 88, 101, 192, 62, 19, 56, 59, 192, 37, 112, 246, 63, 88, 101, 192, 62, 76, 174, 53, 192, 174, 140, 253, 63, 88, 101, 192, 62, 203, 179, 46, 192, 0, 0, 0, 64, 248, 46, 155, 61, 112, 247, 38, 192, 225, 238, 205, 63, 248, 46, 155, 61, 0, 0, 64, 192, 174, 140, 253, 63, 248, 46, 155, 61, 203, 179, 46, 192, 37, 112, 246, 63, 248, 46, 155, 61, 76, 174, 53, 192, 151, 92, 235, 63, 248, 46, 155, 61, 19, 56, 59, 192, 149, 103, 221, 63, 248, 46, 155, 61, 88, 198, 62, 192, 0, 0, 0, 64, 88, 101, 192, 62, 112, 247, 38, 64, 225, 238, 205, 63, 88, 101, 192, 62, 0, 0, 64, 64, 174, 140, 253, 63, 88, 101, 192, 62, 203, 179, 46, 64, 37, 112, 246, 63, 88, 101, 192, 62, 76, 174, 53, 64, 151, 92, 235, 63, 88, 101, 192, 62, 19, 56, 59, 64, 149, 103, 221, 63, 88, 101, 192, 62, 88, 198, 62, 64, 225, 238, 205, 63, 248, 46, 155, 61, 0, 0, 64, 64, 0, 0, 0, 64, 248, 46, 155, 61, 112, 247, 38, 64, 149, 103, 221, 63, 248, 46, 155, 61, 88, 198, 62, 64, 151, 92, 235, 63, 248, 46, 155, 61, 19, 56, 59, 64, 37, 112, 246, 63, 248, 46, 155, 61, 76, 174, 53, 64, 174, 140, 253, 63, 248, 46, 155, 61, 203, 179, 46, 64, 0, 0, 0, 192, 88, 101, 192, 62, 112, 247, 38, 192, 225, 238, 205, 191, 88, 101, 192, 62, 0, 0, 64, 192, 174, 140, 253, 191, 88, 101, 192, 62, 203, 179, 46, 192, 37, 112, 246, 191, 88, 101, 192, 62, 76, 174, 53, 192, 151, 92, 235, 191, 88, 101, 192, 62, 19, 56, 59, 192, 149, 103, 221, 191, 88, 101, 192, 62, 88, 198, 62, 192, 225, 238, 205, 191, 248, 46, 155, 61, 0, 0, 64, 192, 0, 0, 0, 192, 248, 46, 155, 61, 112, 247, 38, 192, 149, 103, 221, 191, 248, 46, 155, 61, 88, 198, 62, 192, 151, 92, 235, 191, 248, 46, 155, 61, 19, 56, 59, 192, 37, 112, 246, 191, 248, 46, 155, 61, 76, 174, 53, 192, 174, 140, 253, 191, 248, 46, 155, 61, 203, 179, 46, 192, 225, 238, 205, 191, 88, 101, 192, 62, 0, 0, 64, 64, 0, 0, 0, 192, 88, 101, 192, 62, 112, 247, 38, 64, 149, 103, 221, 191, 88, 101, 192, 62, 88, 198, 62, 64, 151, 92, 235, 191, 88, 101, 192, 62, 19, 56, 59, 64, 37, 112, 246, 191, 88, 101, 192, 62, 76, 174, 53, 64, 174, 140, 253, 191, 88, 101, 192, 62, 203, 179, 46, 64, 0, 0, 0, 192, 248, 46, 155, 61, 112, 247, 38, 64, 225, 238, 205, 191, 248, 46, 155, 61, 0, 0, 64, 64, 174, 140, 253, 191, 248, 46, 155, 61, 203, 179, 46, 64, 37, 112, 246, 191, 248, 46, 155, 61, 76, 174, 53, 64, 151, 92, 235, 191, 248, 46, 155, 61, 19, 56, 59, 64, 149, 103, 221, 191, 248, 46, 155, 61, 88, 198, 62, 64, 0, 0, 0, 191, 228, 253, 51, 62, 0, 0, 64, 192, 0, 0, 0, 191, 248, 46, 155, 61, 0, 0, 64, 192, 0, 0, 0, 63, 248, 46, 155, 61, 0, 0, 64, 192, 0, 0, 0, 63, 228, 253, 51, 62, 0, 0, 64, 192, 0, 0, 0, 191, 248, 46, 155, 61, 0, 0, 64, 64, 0, 0, 0, 191, 228, 253, 51, 62, 0, 0, 64, 64, 0, 0, 0, 63, 228, 253, 51, 62, 0, 0, 64, 64, 0, 0, 0, 63, 248, 46, 155, 61, 0, 0, 64, 64)
|
42 |
+
}, {
|
43 |
+
"aabb": AABB(-2, 0.0757732, -3, 4.00001, 9.99868e-06, 6),
|
44 |
+
"format": 4097,
|
45 |
+
"index_count": 84,
|
46 |
+
"index_data": PackedByteArray(22, 0, 19, 0, 23, 0, 22, 0, 27, 0, 19, 0, 20, 0, 22, 0, 21, 0, 13, 0, 20, 0, 18, 0, 16, 0, 13, 0, 17, 0, 14, 0, 16, 0, 15, 0, 25, 0, 14, 0, 12, 0, 24, 0, 14, 0, 25, 0, 14, 0, 13, 0, 16, 0, 13, 0, 22, 0, 20, 0, 22, 0, 29, 0, 27, 0, 28, 0, 8, 0, 6, 0, 22, 0, 28, 0, 29, 0, 14, 0, 22, 0, 13, 0, 26, 0, 14, 0, 24, 0, 5, 0, 26, 0, 1, 0, 3, 0, 5, 0, 4, 0, 0, 0, 3, 0, 2, 0, 11, 0, 0, 0, 7, 0, 9, 0, 11, 0, 10, 0, 28, 0, 9, 0, 8, 0, 14, 0, 28, 0, 22, 0, 5, 0, 14, 0, 26, 0, 0, 0, 5, 0, 3, 0, 9, 0, 0, 0, 11, 0, 14, 0, 9, 0, 28, 0, 0, 0, 14, 0, 5, 0, 9, 0, 14, 0, 0, 0),
|
47 |
+
"name": "Material.001",
|
48 |
+
"primitive": 3,
|
49 |
+
"vertex_count": 30,
|
50 |
+
"vertex_data": PackedByteArray(0, 0, 0, 64, 248, 46, 155, 61, 112, 247, 38, 192, 225, 238, 205, 63, 248, 46, 155, 61, 0, 0, 64, 192, 174, 140, 253, 63, 248, 46, 155, 61, 203, 179, 46, 192, 37, 112, 246, 63, 248, 46, 155, 61, 76, 174, 53, 192, 151, 92, 235, 63, 248, 46, 155, 61, 19, 56, 59, 192, 149, 103, 221, 63, 248, 46, 155, 61, 88, 198, 62, 192, 225, 238, 205, 63, 248, 46, 155, 61, 0, 0, 64, 64, 0, 0, 0, 64, 248, 46, 155, 61, 112, 247, 38, 64, 149, 103, 221, 63, 248, 46, 155, 61, 88, 198, 62, 64, 151, 92, 235, 63, 248, 46, 155, 61, 19, 56, 59, 64, 37, 112, 246, 63, 248, 46, 155, 61, 76, 174, 53, 64, 174, 140, 253, 63, 248, 46, 155, 61, 203, 179, 46, 64, 225, 238, 205, 191, 248, 46, 155, 61, 0, 0, 64, 192, 0, 0, 0, 192, 248, 46, 155, 61, 112, 247, 38, 192, 149, 103, 221, 191, 248, 46, 155, 61, 88, 198, 62, 192, 151, 92, 235, 191, 248, 46, 155, 61, 19, 56, 59, 192, 37, 112, 246, 191, 248, 46, 155, 61, 76, 174, 53, 192, 174, 140, 253, 191, 248, 46, 155, 61, 203, 179, 46, 192, 0, 0, 0, 192, 248, 46, 155, 61, 112, 247, 38, 64, 225, 238, 205, 191, 248, 46, 155, 61, 0, 0, 64, 64, 174, 140, 253, 191, 248, 46, 155, 61, 203, 179, 46, 64, 37, 112, 246, 191, 248, 46, 155, 61, 76, 174, 53, 64, 151, 92, 235, 191, 248, 46, 155, 61, 19, 56, 59, 64, 149, 103, 221, 191, 248, 46, 155, 61, 88, 198, 62, 64, 160, 153, 153, 190, 248, 46, 155, 61, 0, 0, 64, 192, 0, 0, 0, 191, 248, 46, 155, 61, 0, 0, 64, 192, 0, 0, 0, 63, 248, 46, 155, 61, 0, 0, 64, 192, 0, 0, 0, 191, 248, 46, 155, 61, 0, 0, 64, 64, 0, 0, 0, 63, 248, 46, 155, 61, 0, 0, 64, 64, 152, 153, 153, 62, 248, 46, 155, 61, 0, 0, 64, 64)
|
51 |
+
}, {
|
52 |
+
"aabb": AABB(-0.5, 0.0757732, -3.2, 1, 0.1, 6.40001),
|
53 |
+
"format": 4097,
|
54 |
+
"index_count": 66,
|
55 |
+
"index_data": PackedByteArray(10, 0, 5, 0, 2, 0, 10, 0, 8, 0, 5, 0, 2, 0, 7, 0, 6, 0, 2, 0, 5, 0, 7, 0, 7, 0, 11, 0, 6, 0, 7, 0, 12, 0, 11, 0, 9, 0, 6, 0, 11, 0, 6, 0, 10, 0, 2, 0, 9, 0, 10, 0, 6, 0, 8, 0, 7, 0, 5, 0, 8, 0, 12, 0, 7, 0, 14, 0, 0, 0, 1, 0, 14, 0, 13, 0, 0, 0, 3, 0, 15, 0, 4, 0, 3, 0, 16, 0, 15, 0, 3, 0, 1, 0, 0, 0, 3, 0, 4, 0, 1, 0, 17, 0, 0, 0, 13, 0, 0, 0, 16, 0, 3, 0, 0, 0, 17, 0, 16, 0, 4, 0, 14, 0, 1, 0, 4, 0, 15, 0, 14, 0),
|
56 |
+
"name": "Material.001",
|
57 |
+
"primitive": 3,
|
58 |
+
"vertex_count": 18,
|
59 |
+
"vertex_data": PackedByteArray(0, 0, 0, 191, 248, 46, 155, 61, 205, 204, 76, 64, 0, 0, 0, 191, 228, 253, 51, 62, 205, 204, 76, 64, 0, 0, 0, 191, 248, 46, 155, 61, 204, 204, 76, 192, 0, 0, 0, 63, 248, 46, 155, 61, 205, 204, 76, 64, 0, 0, 0, 63, 228, 253, 51, 62, 205, 204, 76, 64, 0, 0, 0, 191, 228, 253, 51, 62, 204, 204, 76, 192, 0, 0, 0, 63, 248, 46, 155, 61, 204, 204, 76, 192, 0, 0, 0, 63, 228, 253, 51, 62, 204, 204, 76, 192, 0, 0, 0, 191, 228, 253, 51, 62, 0, 0, 64, 192, 160, 153, 153, 190, 248, 46, 155, 61, 0, 0, 64, 192, 0, 0, 0, 191, 248, 46, 155, 61, 0, 0, 64, 192, 0, 0, 0, 63, 248, 46, 155, 61, 0, 0, 64, 192, 0, 0, 0, 63, 228, 253, 51, 62, 0, 0, 64, 192, 0, 0, 0, 191, 248, 46, 155, 61, 0, 0, 64, 64, 0, 0, 0, 191, 228, 253, 51, 62, 0, 0, 64, 64, 0, 0, 0, 63, 228, 253, 51, 62, 0, 0, 64, 64, 0, 0, 0, 63, 248, 46, 155, 61, 0, 0, 64, 64, 152, 153, 153, 62, 248, 46, 155, 61, 0, 0, 64, 64)
|
60 |
+
}]
|
61 |
+
blend_shape_mode = 0
|
62 |
+
|
63 |
+
[sub_resource type="ArrayMesh" id="ArrayMesh_3768v"]
|
64 |
+
resource_name = "table-0a94a8c81d6f00960eb0e748873e0eac_Cube"
|
65 |
+
_surfaces = [{
|
66 |
+
"aabb": AABB(-2.25, -0.174227, -3.25, 4.5, 0.55001, 6.5),
|
67 |
+
"attribute_data": PackedByteArray(0, 0, 32, 63, 0, 0, 0, 63, 0, 0, 32, 63, 0, 0, 0, 63, 0, 0, 32, 63, 0, 0, 0, 63, 0, 0, 192, 62, 0, 0, 0, 63, 0, 0, 192, 62, 0, 0, 0, 63, 0, 0, 192, 62, 0, 0, 0, 63, 0, 0, 32, 63, 0, 0, 128, 62, 0, 0, 32, 63, 0, 0, 128, 62, 0, 0, 32, 63, 0, 0, 128, 62, 0, 0, 192, 62, 0, 0, 128, 62, 0, 0, 192, 62, 0, 0, 128, 62, 0, 0, 192, 62, 0, 0, 128, 62, 0, 0, 32, 63, 0, 0, 64, 63, 0, 0, 32, 63, 0, 0, 64, 63, 0, 0, 32, 63, 0, 0, 64, 63, 0, 0, 0, 62, 0, 0, 0, 63, 0, 0, 192, 62, 0, 0, 64, 63, 0, 0, 192, 62, 0, 0, 64, 63, 0, 0, 32, 63, 0, 0, 0, 0, 0, 0, 32, 63, 0, 0, 0, 0, 0, 0, 32, 63, 0, 0, 128, 63, 0, 0, 32, 63, 0, 0, 128, 63, 0, 0, 0, 62, 0, 0, 128, 62, 0, 0, 192, 62, 0, 0, 0, 0, 0, 0, 192, 62, 0, 0, 128, 63, 0, 0, 32, 63, 36, 66, 6, 63, 0, 0, 32, 63, 36, 66, 6, 63, 0, 0, 32, 63, 36, 66, 6, 63, 0, 0, 32, 63, 208, 167, 247, 62, 0, 0, 32, 63, 208, 167, 247, 62, 0, 0, 32, 63, 208, 167, 247, 62, 0, 0, 32, 63, 0, 0, 0, 63, 255, 255, 31, 63, 14, 83, 4, 63, 255, 255, 31, 63, 14, 83, 4, 63, 255, 255, 31, 63, 14, 83, 4, 63, 1, 0, 32, 63, 109, 148, 2, 63, 1, 0, 32, 63, 109, 148, 2, 63, 1, 0, 32, 63, 109, 148, 2, 63, 255, 255, 31, 63, 252, 49, 1, 63, 0, 0, 32, 63, 110, 143, 252, 62, 0, 0, 32, 63, 110, 143, 252, 62, 0, 0, 32, 63, 238, 59, 250, 62, 0, 0, 32, 63, 238, 59, 250, 62, 0, 0, 32, 63, 106, 78, 0, 63, 0, 0, 192, 62, 208, 167, 247, 62, 0, 0, 192, 62, 208, 167, 247, 62, 0, 0, 192, 62, 36, 66, 6, 63, 0, 0, 192, 62, 36, 66, 6, 63, 0, 0, 192, 62, 238, 59, 250, 62, 0, 0, 192, 62, 238, 59, 250, 62, 0, 0, 192, 62, 112, 143, 252, 62, 0, 0, 192, 62, 112, 143, 252, 62, 0, 0, 192, 62, 109, 148, 2, 63, 0, 0, 192, 62, 109, 148, 2, 63, 0, 0, 192, 62, 14, 83, 4, 63, 0, 0, 192, 62, 14, 83, 4, 63, 0, 0, 32, 63, 48, 88, 136, 62, 0, 0, 32, 63, 48, 88, 136, 62, 0, 0, 32, 63, 48, 88, 136, 62, 0, 0, 32, 63, 112, 247, 102, 62, 0, 0, 32, 63, 112, 247, 102, 62, 0, 0, 32, 63, 112, 247, 102, 62, 0, 0, 32, 63, 0, 0, 128, 62, 0, 0, 32, 63, 16, 196, 133, 62, 0, 0, 32, 63, 16, 196, 133, 62, 0, 0, 32, 63, 16, 196, 133, 62, 0, 0, 32, 63, 146, 112, 131, 62, 0, 0, 32, 63, 146, 112, 131, 62, 0, 0, 32, 63, 146, 112, 131, 62, 0, 0, 32, 63, 76, 174, 117, 62, 0, 0, 32, 63, 76, 174, 117, 62, 0, 0, 32, 63, 248, 151, 129, 62, 0, 0, 32, 63, 200, 179, 110, 62, 0, 0, 32, 63, 200, 179, 110, 62, 0, 0, 32, 63, 142, 104, 128, 62, 0, 0, 192, 62, 112, 247, 102, 62, 0, 0, 192, 62, 112, 247, 102, 62, 0, 0, 192, 62, 48, 88, 136, 62, 0, 0, 192, 62, 48, 88, 136, 62, 0, 0, 192, 62, 200, 179, 110, 62, 0, 0, 192, 62, 200, 179, 110, 62, 0, 0, 192, 62, 72, 174, 117, 62, 0, 0, 192, 62, 72, 174, 117, 62, 0, 0, 192, 62, 146, 112, 131, 62, 0, 0, 192, 62, 146, 112, 131, 62, 0, 0, 192, 62, 18, 196, 133, 62, 0, 0, 192, 62, 18, 196, 133, 62, 0, 0, 32, 63, 24, 44, 68, 63, 0, 0, 32, 63, 24, 44, 68, 63, 0, 0, 32, 63, 24, 44, 68, 63, 0, 0, 32, 63, 220, 189, 57, 63, 0, 0, 32, 63, 220, 189, 57, 63, 0, 0, 32, 63, 220, 189, 57, 63, 0, 0, 32, 63, 0, 0, 64, 63, 0, 0, 32, 63, 9, 226, 66, 63, 0, 0, 32, 63, 9, 226, 66, 63, 0, 0, 32, 63, 9, 226, 66, 63, 0, 0, 32, 63, 73, 184, 65, 63, 0, 0, 32, 63, 73, 184, 65, 63, 0, 0, 32, 63, 73, 184, 65, 63, 0, 0, 32, 63, 147, 107, 61, 63, 0, 0, 32, 63, 147, 107, 61, 63, 0, 0, 32, 63, 253, 203, 64, 63, 0, 0, 32, 63, 242, 172, 59, 63, 0, 0, 32, 63, 242, 172, 59, 63, 0, 0, 32, 63, 71, 52, 64, 63, 0, 0, 192, 62, 220, 189, 57, 63, 0, 0, 192, 62, 220, 189, 57, 63, 0, 0, 192, 62, 24, 44, 68, 63, 0, 0, 192, 62, 24, 44, 68, 63, 0, 0, 192, 62, 243, 172, 59, 63, 0, 0, 192, 62, 243, 172, 59, 63, 0, 0, 192, 62, 147, 107, 61, 63, 0, 0, 192, 62, 147, 107, 61, 63, 0, 0, 192, 62, 73, 184, 65, 63, 0, 0, 192, 62, 73, 184, 65, 63, 0, 0, 192, 62, 9, 226, 66, 63, 0, 0, 192, 62, 9, 226, 66, 63, 0, 0, 32, 63, 128, 68, 200, 60, 0, 0, 32, 63, 128, 68, 200, 60, 0, 0, 32, 63, 128, 68, 200, 60, 0, 0, 32, 63, 0, 0, 128, 63, 0, 0, 32, 63, 232, 211, 123, 63, 0, 0, 32, 63, 232, 211, 123, 63, 0, 0, 32, 63, 232, 211, 123, 63, 255, 255, 31, 63, 192, 97, 138, 60, 255, 255, 31, 63, 192, 97, 138, 60, 0, 0, 32, 63, 188, 13, 129, 63, 0, 0, 32, 63, 0, 0, 0, 0, 0, 0, 32, 63, 3, 52, 127, 63, 0, 0, 32, 63, 0, 0, 128, 63, 0, 0, 32, 63, 183, 71, 126, 63, 0, 0, 32, 63, 183, 71, 126, 63, 0, 0, 32, 63, 183, 71, 126, 63, 0, 0, 32, 63, 247, 29, 125, 63, 0, 0, 32, 63, 247, 29, 125, 63, 0, 0, 32, 63, 247, 29, 125, 63, 0, 0, 192, 62, 232, 211, 123, 63, 0, 0, 192, 62, 232, 211, 123, 63, 0, 0, 192, 62, 128, 68, 200, 60, 0, 0, 192, 62, 128, 68, 200, 60, 0, 0, 192, 62, 247, 29, 125, 63, 0, 0, 192, 62, 247, 29, 125, 63, 0, 0, 192, 62, 183, 71, 126, 63, 0, 0, 192, 62, 183, 71, 126, 63, 0, 0, 192, 62, 0, 0, 0, 0, 0, 0, 192, 62, 0, 0, 128, 63, 0, 0, 192, 62, 192, 97, 138, 60, 0, 0, 192, 62, 192, 97, 138, 60, 170, 170, 234, 62, 0, 0, 40, 63, 0, 0, 192, 62, 0, 0, 40, 63, 0, 0, 192, 62, 0, 0, 24, 63, 172, 170, 234, 62, 0, 0, 24, 63, 0, 0, 192, 62, 0, 0, 192, 61, 172, 170, 234, 62, 248, 255, 191, 61, 170, 170, 234, 62, 0, 0, 32, 62, 0, 0, 192, 62, 0, 0, 32, 62, 0, 0, 32, 63, 238, 59, 250, 62, 0, 0, 192, 62, 208, 167, 247, 62, 0, 0, 192, 62, 36, 66, 6, 63, 0, 0, 192, 62, 36, 66, 6, 63, 0, 0, 192, 62, 14, 83, 4, 63, 0, 0, 32, 63, 200, 179, 110, 62, 0, 0, 192, 62, 48, 88, 136, 62, 0, 0, 192, 62, 48, 88, 136, 62, 0, 0, 192, 62, 18, 196, 133, 62, 0, 0, 192, 62, 18, 196, 133, 62, 0, 0, 32, 63, 220, 189, 57, 63, 0, 0, 192, 62, 220, 189, 57, 63, 0, 0, 192, 62, 243, 172, 59, 63, 0, 0, 192, 62, 147, 107, 61, 63, 0, 0, 192, 62, 73, 184, 65, 63, 0, 0, 192, 62, 9, 226, 66, 63, 0, 0, 192, 62, 9, 226, 66, 63, 0, 0, 32, 63, 232, 211, 123, 63),
|
68 |
+
"format": 4119,
|
69 |
+
"index_count": 282,
|
70 |
+
"index_data": PackedByteArray(119, 0, 7, 0, 19, 0, 119, 0, 61, 0, 7, 0, 87, 0, 21, 0, 14, 0, 87, 0, 122, 0, 21, 0, 154, 0, 139, 0, 153, 0, 139, 0, 60, 0, 118, 0, 60, 0, 156, 0, 76, 0, 60, 0, 155, 0, 156, 0, 154, 0, 60, 0, 139, 0, 60, 0, 154, 0, 155, 0, 58, 0, 1, 0, 7, 0, 58, 0, 30, 0, 1, 0, 27, 0, 14, 0, 1, 0, 27, 0, 91, 0, 14, 0, 10, 0, 18, 0, 6, 0, 10, 0, 23, 0, 18, 0, 24, 0, 12, 0, 20, 0, 24, 0, 16, 0, 12, 0, 15, 0, 9, 0, 3, 0, 15, 0, 22, 0, 9, 0, 5, 0, 8, 0, 2, 0, 5, 0, 11, 0, 8, 0, 17, 0, 0, 0, 13, 0, 17, 0, 4, 0, 0, 0, 138, 0, 89, 0, 109, 0, 138, 0, 124, 0, 89, 0, 44, 0, 56, 0, 77, 0, 44, 0, 28, 0, 56, 0, 27, 0, 1, 0, 34, 0, 34, 0, 1, 0, 37, 0, 37, 0, 1, 0, 38, 0, 38, 0, 1, 0, 43, 0, 43, 0, 1, 0, 31, 0, 58, 0, 7, 0, 65, 0, 65, 0, 7, 0, 68, 0, 68, 0, 7, 0, 71, 0, 71, 0, 7, 0, 74, 0, 74, 0, 7, 0, 62, 0, 87, 0, 14, 0, 94, 0, 94, 0, 14, 0, 97, 0, 97, 0, 14, 0, 102, 0, 102, 0, 14, 0, 105, 0, 105, 0, 14, 0, 93, 0, 121, 0, 21, 0, 127, 0, 127, 0, 21, 0, 129, 0, 129, 0, 21, 0, 131, 0, 131, 0, 21, 0, 134, 0, 134, 0, 21, 0, 122, 0, 25, 0, 55, 0, 46, 0, 25, 0, 33, 0, 55, 0, 32, 0, 53, 0, 54, 0, 32, 0, 36, 0, 53, 0, 35, 0, 51, 0, 52, 0, 35, 0, 40, 0, 51, 0, 39, 0, 49, 0, 50, 0, 39, 0, 42, 0, 49, 0, 41, 0, 45, 0, 48, 0, 41, 0, 29, 0, 45, 0, 137, 0, 136, 0, 123, 0, 137, 0, 142, 0, 136, 0, 141, 0, 133, 0, 135, 0, 141, 0, 144, 0, 133, 0, 143, 0, 130, 0, 132, 0, 143, 0, 146, 0, 130, 0, 145, 0, 126, 0, 128, 0, 145, 0, 148, 0, 126, 0, 147, 0, 120, 0, 125, 0, 147, 0, 140, 0, 120, 0, 57, 0, 85, 0, 78, 0, 57, 0, 63, 0, 85, 0, 64, 0, 83, 0, 86, 0, 64, 0, 66, 0, 83, 0, 67, 0, 81, 0, 84, 0, 67, 0, 69, 0, 81, 0, 70, 0, 79, 0, 82, 0, 70, 0, 72, 0, 79, 0, 73, 0, 75, 0, 80, 0, 73, 0, 59, 0, 75, 0, 88, 0, 117, 0, 108, 0, 88, 0, 96, 0, 117, 0, 95, 0, 115, 0, 116, 0, 95, 0, 99, 0, 115, 0, 98, 0, 113, 0, 114, 0, 98, 0, 101, 0, 113, 0, 100, 0, 111, 0, 112, 0, 100, 0, 104, 0, 111, 0, 103, 0, 107, 0, 110, 0, 103, 0, 92, 0, 107, 0, 152, 0, 47, 0, 151, 0, 47, 0, 90, 0, 26, 0, 90, 0, 150, 0, 106, 0, 90, 0, 149, 0, 150, 0, 152, 0, 90, 0, 47, 0, 152, 0, 149, 0, 90, 0),
|
71 |
+
"lods": [1.73093, PackedByteArray(119, 0, 7, 0, 19, 0, 119, 0, 61, 0, 7, 0, 74, 0, 7, 0, 62, 0, 74, 0, 1, 0, 7, 0, 74, 0, 30, 0, 1, 0, 43, 0, 1, 0, 31, 0, 43, 0, 14, 0, 1, 0, 43, 0, 91, 0, 14, 0, 122, 0, 14, 0, 93, 0, 122, 0, 21, 0, 14, 0, 129, 0, 21, 0, 122, 0, 127, 0, 21, 0, 129, 0, 121, 0, 21, 0, 127, 0, 154, 0, 139, 0, 153, 0, 154, 0, 59, 0, 139, 0, 59, 0, 154, 0, 155, 0, 59, 0, 155, 0, 156, 0, 59, 0, 156, 0, 75, 0, 139, 0, 59, 0, 118, 0, 147, 0, 139, 0, 118, 0, 147, 0, 118, 0, 125, 0, 145, 0, 147, 0, 125, 0, 145, 0, 125, 0, 128, 0, 72, 0, 59, 0, 75, 0, 72, 0, 75, 0, 79, 0, 72, 0, 79, 0, 81, 0, 72, 0, 81, 0, 83, 0, 72, 0, 83, 0, 166, 0, 44, 0, 28, 0, 72, 0, 41, 0, 28, 0, 44, 0, 41, 0, 44, 0, 48, 0, 41, 0, 48, 0, 50, 0, 41, 0, 50, 0, 52, 0, 41, 0, 52, 0, 161, 0, 157, 0, 161, 0, 159, 0, 160, 0, 167, 0, 157, 0, 10, 0, 18, 0, 6, 0, 10, 0, 23, 0, 18, 0, 24, 0, 12, 0, 20, 0, 24, 0, 16, 0, 12, 0, 15, 0, 9, 0, 3, 0, 15, 0, 22, 0, 9, 0, 5, 0, 8, 0, 2, 0, 5, 0, 11, 0, 8, 0, 17, 0, 0, 0, 13, 0, 17, 0, 4, 0, 0, 0, 137, 0, 123, 0, 108, 0, 123, 0, 172, 0, 108, 0, 137, 0, 141, 0, 123, 0, 141, 0, 143, 0, 123, 0, 143, 0, 130, 0, 123, 0, 143, 0, 146, 0, 130, 0, 123, 0, 90, 0, 106, 0, 90, 0, 150, 0, 106, 0, 90, 0, 149, 0, 150, 0, 152, 0, 149, 0, 90, 0, 152, 0, 90, 0, 46, 0, 152, 0, 46, 0, 151, 0, 158, 0, 162, 0, 163, 0, 162, 0, 165, 0, 164, 0, 174, 0, 171, 0, 173, 0, 174, 0, 170, 0, 171, 0, 174, 0, 169, 0, 170, 0, 174, 0, 168, 0, 169, 0)],
|
72 |
+
"material": SubResource("StandardMaterial3D_qk2kn"),
|
73 |
+
"name": "Material",
|
74 |
+
"primitive": 3,
|
75 |
+
"vertex_count": 175,
|
76 |
+
"vertex_data": PackedByteArray(182, 255, 15, 64, 88, 101, 192, 62, 182, 255, 79, 192, 255, 255, 255, 255, 254, 127, 254, 255, 182, 255, 15, 64, 88, 101, 192, 62, 182, 255, 79, 192, 255, 127, 255, 255, 99, 88, 255, 191, 182, 255, 15, 64, 88, 101, 192, 62, 182, 255, 79, 192, 255, 255, 255, 127, 255, 127, 254, 255, 0, 0, 16, 64, 132, 104, 50, 190, 0, 0, 80, 192, 255, 127, 0, 0, 255, 255, 255, 191, 0, 0, 16, 64, 132, 104, 50, 190, 0, 0, 80, 192, 255, 255, 255, 255, 254, 127, 254, 255, 0, 0, 16, 64, 132, 104, 50, 190, 0, 0, 80, 192, 255, 255, 255, 127, 255, 127, 254, 255, 182, 255, 15, 64, 88, 101, 192, 62, 182, 255, 79, 64, 255, 127, 255, 127, 254, 127, 254, 255, 182, 255, 15, 64, 88, 101, 192, 62, 182, 255, 79, 64, 255, 127, 255, 255, 255, 255, 255, 191, 182, 255, 15, 64, 88, 101, 192, 62, 182, 255, 79, 64, 255, 255, 255, 127, 0, 128, 255, 255, 0, 0, 16, 64, 132, 104, 50, 190, 0, 0, 80, 64, 255, 127, 0, 0, 255, 255, 255, 191, 0, 0, 16, 64, 132, 104, 50, 190, 0, 0, 80, 64, 255, 127, 255, 127, 254, 127, 254, 255, 0, 0, 16, 64, 132, 104, 50, 190, 0, 0, 80, 64, 255, 255, 255, 127, 0, 128, 255, 255, 182, 255, 15, 192, 88, 101, 192, 62, 182, 255, 79, 192, 0, 0, 255, 127, 255, 127, 254, 255, 182, 255, 15, 192, 88, 101, 192, 62, 182, 255, 79, 192, 255, 255, 255, 255, 0, 128, 254, 255, 182, 255, 15, 192, 88, 101, 192, 62, 182, 255, 79, 192, 255, 127, 255, 255, 255, 255, 255, 191, 0, 0, 16, 192, 132, 104, 50, 190, 0, 0, 80, 192, 255, 127, 0, 0, 255, 255, 255, 191, 0, 0, 16, 192, 132, 104, 50, 190, 0, 0, 80, 192, 0, 0, 255, 127, 255, 127, 254, 255, 0, 0, 16, 192, 132, 104, 50, 190, 0, 0, 80, 192, 255, 255, 255, 255, 0, 128, 254, 255, 182, 255, 15, 192, 88, 101, 192, 62, 182, 255, 79, 64, 255, 127, 255, 127, 0, 128, 254, 255, 182, 255, 15, 192, 88, 101, 192, 62, 182, 255, 79, 64, 255, 127, 255, 255, 255, 255, 255, 191, 182, 255, 15, 192, 88, 101, 192, 62, 182, 255, 79, 64, 0, 0, 255, 127, 0, 128, 255, 255, 182, 255, 15, 192, 88, 101, 192, 62, 182, 255, 79, 64, 255, 127, 255, 255, 255, 255, 255, 191, 0, 0, 16, 192, 132, 104, 50, 190, 0, 0, 80, 64, 255, 127, 0, 0, 255, 255, 255, 191, 0, 0, 16, 192, 132, 104, 50, 190, 0, 0, 80, 64, 255, 127, 255, 127, 0, 128, 254, 255, 0, 0, 16, 192, 132, 104, 50, 190, 0, 0, 80, 64, 0, 0, 255, 127, 0, 128, 255, 255, 225, 238, 205, 63, 88, 101, 192, 62, 0, 0, 64, 192, 128, 110, 255, 127, 255, 127, 0, 0, 225, 238, 205, 63, 88, 101, 192, 62, 0, 0, 64, 192, 255, 127, 255, 127, 255, 127, 0, 0, 225, 238, 205, 63, 88, 101, 192, 62, 0, 0, 64, 192, 255, 127, 255, 255, 255, 255, 120, 28, 0, 0, 0, 64, 88, 101, 192, 62, 112, 247, 38, 192, 0, 0, 255, 127, 255, 127, 0, 0, 0, 0, 0, 64, 88, 101, 192, 62, 112, 247, 38, 192, 127, 17, 255, 127, 255, 127, 0, 0, 0, 0, 0, 64, 88, 101, 192, 62, 112, 247, 38, 192, 255, 127, 255, 255, 255, 255, 255, 191, 0, 0, 0, 64, 88, 101, 192, 62, 112, 247, 38, 192, 255, 127, 255, 255, 255, 255, 255, 191, 149, 103, 221, 63, 88, 101, 192, 62, 88, 198, 62, 192, 202, 84, 255, 127, 255, 127, 0, 0, 149, 103, 221, 63, 88, 101, 192, 62, 88, 198, 62, 192, 128, 110, 255, 127, 255, 127, 0, 0, 149, 103, 221, 63, 88, 101, 192, 62, 88, 198, 62, 192, 255, 127, 255, 255, 72, 79, 255, 191, 151, 92, 235, 63, 88, 101, 192, 62, 19, 56, 59, 192, 255, 63, 255, 127, 255, 127, 0, 0, 151, 92, 235, 63, 88, 101, 192, 62, 19, 56, 59, 192, 202, 84, 255, 127, 255, 127, 0, 0, 151, 92, 235, 63, 88, 101, 192, 62, 19, 56, 59, 192, 255, 127, 255, 255, 255, 255, 189, 21, 37, 112, 246, 63, 88, 101, 192, 62, 76, 174, 53, 192, 255, 127, 255, 255, 99, 88, 255, 191, 37, 112, 246, 63, 88, 101, 192, 62, 76, 174, 53, 192, 52, 43, 255, 127, 255, 127, 0, 0, 37, 112, 246, 63, 88, 101, 192, 62, 76, 174, 53, 192, 255, 63, 255, 127, 255, 127, 0, 0, 174, 140, 253, 63, 88, 101, 192, 62, 203, 179, 46, 192, 127, 17, 255, 127, 255, 127, 0, 0, 174, 140, 253, 63, 88, 101, 192, 62, 203, 179, 46, 192, 52, 43, 255, 127, 255, 127, 0, 0, 174, 140, 253, 63, 88, 101, 192, 62, 203, 179, 46, 192, 255, 127, 255, 255, 99, 88, 255, 191, 0, 0, 0, 64, 248, 46, 155, 61, 112, 247, 38, 192, 0, 0, 255, 127, 255, 127, 0, 0, 0, 0, 0, 64, 248, 46, 155, 61, 112, 247, 38, 192, 127, 17, 255, 127, 255, 127, 0, 0, 225, 238, 205, 63, 248, 46, 155, 61, 0, 0, 64, 192, 128, 110, 255, 127, 255, 127, 0, 0, 225, 238, 205, 63, 248, 46, 155, 61, 0, 0, 64, 192, 255, 127, 255, 127, 255, 127, 0, 0, 174, 140, 253, 63, 248, 46, 155, 61, 203, 179, 46, 192, 127, 17, 255, 127, 255, 127, 0, 0, 174, 140, 253, 63, 248, 46, 155, 61, 203, 179, 46, 192, 52, 43, 255, 127, 255, 127, 0, 0, 37, 112, 246, 63, 248, 46, 155, 61, 76, 174, 53, 192, 52, 43, 255, 127, 255, 127, 0, 0, 37, 112, 246, 63, 248, 46, 155, 61, 76, 174, 53, 192, 255, 63, 255, 127, 255, 127, 0, 0, 151, 92, 235, 63, 248, 46, 155, 61, 19, 56, 59, 192, 255, 63, 255, 127, 255, 127, 0, 0, 151, 92, 235, 63, 248, 46, 155, 61, 19, 56, 59, 192, 202, 84, 255, 127, 255, 127, 0, 0, 149, 103, 221, 63, 248, 46, 155, 61, 88, 198, 62, 192, 202, 84, 255, 127, 255, 127, 0, 0, 149, 103, 221, 63, 248, 46, 155, 61, 88, 198, 62, 192, 128, 110, 255, 127, 255, 127, 0, 0, 0, 0, 0, 64, 88, 101, 192, 62, 112, 247, 38, 64, 0, 0, 255, 127, 255, 127, 0, 0, 0, 0, 0, 64, 88, 101, 192, 62, 112, 247, 38, 64, 0, 0, 126, 145, 255, 127, 0, 0, 0, 0, 0, 64, 88, 101, 192, 62, 112, 247, 38, 64, 255, 127, 255, 255, 255, 255, 255, 191, 225, 238, 205, 63, 88, 101, 192, 62, 0, 0, 64, 64, 0, 0, 127, 238, 255, 127, 0, 0, 225, 238, 205, 63, 88, 101, 192, 62, 0, 0, 64, 64, 255, 255, 255, 255, 255, 127, 0, 0, 225, 238, 205, 63, 88, 101, 192, 62, 0, 0, 64, 64, 255, 127, 255, 255, 255, 255, 255, 191, 225, 238, 205, 63, 88, 101, 192, 62, 0, 0, 64, 64, 255, 127, 255, 255, 255, 255, 255, 191, 174, 140, 253, 63, 88, 101, 192, 62, 203, 179, 46, 64, 0, 0, 126, 145, 255, 127, 0, 0, 174, 140, 253, 63, 88, 101, 192, 62, 203, 179, 46, 64, 0, 0, 52, 171, 255, 127, 0, 0, 174, 140, 253, 63, 88, 101, 192, 62, 203, 179, 46, 64, 255, 127, 255, 255, 255, 255, 255, 191, 37, 112, 246, 63, 88, 101, 192, 62, 76, 174, 53, 64, 0, 0, 52, 171, 255, 127, 0, 0, 37, 112, 246, 63, 88, 101, 192, 62, 76, 174, 53, 64, 0, 0, 255, 191, 255, 127, 0, 0, 37, 112, 246, 63, 88, 101, 192, 62, 76, 174, 53, 64, 255, 127, 255, 255, 255, 255, 255, 191, 151, 92, 235, 63, 88, 101, 192, 62, 19, 56, 59, 64, 0, 0, 255, 191, 255, 127, 0, 0, 151, 92, 235, 63, 88, 101, 192, 62, 19, 56, 59, 64, 0, 0, 202, 212, 255, 127, 0, 0, 151, 92, 235, 63, 88, 101, 192, 62, 19, 56, 59, 64, 255, 127, 255, 255, 255, 255, 255, 191, 149, 103, 221, 63, 88, 101, 192, 62, 88, 198, 62, 64, 0, 0, 202, 212, 255, 127, 0, 0, 149, 103, 221, 63, 88, 101, 192, 62, 88, 198, 62, 64, 0, 0, 127, 238, 255, 127, 0, 0, 149, 103, 221, 63, 88, 101, 192, 62, 88, 198, 62, 64, 255, 127, 255, 255, 255, 255, 255, 191, 225, 238, 205, 63, 248, 46, 155, 61, 0, 0, 64, 64, 0, 0, 127, 238, 255, 127, 0, 0, 225, 238, 205, 63, 248, 46, 155, 61, 0, 0, 64, 64, 255, 255, 255, 255, 255, 127, 0, 0, 0, 0, 0, 64, 248, 46, 155, 61, 112, 247, 38, 64, 0, 0, 255, 127, 255, 127, 0, 0, 0, 0, 0, 64, 248, 46, 155, 61, 112, 247, 38, 64, 0, 0, 126, 145, 255, 127, 0, 0, 149, 103, 221, 63, 248, 46, 155, 61, 88, 198, 62, 64, 0, 0, 202, 212, 255, 127, 0, 0, 149, 103, 221, 63, 248, 46, 155, 61, 88, 198, 62, 64, 0, 0, 127, 238, 255, 127, 0, 0, 151, 92, 235, 63, 248, 46, 155, 61, 19, 56, 59, 64, 0, 0, 255, 191, 255, 127, 0, 0, 151, 92, 235, 63, 248, 46, 155, 61, 19, 56, 59, 64, 0, 0, 202, 212, 255, 127, 0, 0, 37, 112, 246, 63, 248, 46, 155, 61, 76, 174, 53, 64, 0, 0, 52, 171, 255, 127, 0, 0, 37, 112, 246, 63, 248, 46, 155, 61, 76, 174, 53, 64, 0, 0, 255, 191, 255, 127, 0, 0, 174, 140, 253, 63, 248, 46, 155, 61, 203, 179, 46, 64, 0, 0, 126, 145, 255, 127, 0, 0, 174, 140, 253, 63, 248, 46, 155, 61, 203, 179, 46, 64, 0, 0, 52, 171, 255, 127, 0, 0, 0, 0, 0, 192, 88, 101, 192, 62, 112, 247, 38, 192, 255, 127, 255, 255, 255, 255, 255, 191, 0, 0, 0, 192, 88, 101, 192, 62, 112, 247, 38, 192, 127, 238, 255, 127, 255, 127, 0, 0, 0, 0, 0, 192, 88, 101, 192, 62, 112, 247, 38, 192, 255, 255, 255, 127, 255, 127, 0, 0, 225, 238, 205, 191, 88, 101, 192, 62, 0, 0, 64, 192, 255, 127, 255, 127, 255, 127, 0, 0, 225, 238, 205, 191, 88, 101, 192, 62, 0, 0, 64, 192, 255, 127, 255, 255, 255, 255, 255, 191, 225, 238, 205, 191, 88, 101, 192, 62, 0, 0, 64, 192, 126, 145, 255, 127, 255, 127, 0, 0, 225, 238, 205, 191, 88, 101, 192, 62, 0, 0, 64, 192, 255, 127, 255, 255, 255, 255, 255, 191, 174, 140, 253, 191, 88, 101, 192, 62, 203, 179, 46, 192, 255, 127, 255, 255, 255, 255, 255, 191, 174, 140, 253, 191, 88, 101, 192, 62, 203, 179, 46, 192, 202, 212, 255, 127, 255, 127, 0, 0, 174, 140, 253, 191, 88, 101, 192, 62, 203, 179, 46, 192, 127, 238, 255, 127, 255, 127, 0, 0, 37, 112, 246, 191, 88, 101, 192, 62, 76, 174, 53, 192, 255, 127, 255, 255, 255, 255, 255, 191, 37, 112, 246, 191, 88, 101, 192, 62, 76, 174, 53, 192, 255, 191, 255, 127, 255, 127, 0, 0, 37, 112, 246, 191, 88, 101, 192, 62, 76, 174, 53, 192, 202, 212, 255, 127, 255, 127, 0, 0, 151, 92, 235, 191, 88, 101, 192, 62, 19, 56, 59, 192, 52, 171, 255, 127, 255, 127, 0, 0, 151, 92, 235, 191, 88, 101, 192, 62, 19, 56, 59, 192, 255, 191, 255, 127, 255, 127, 0, 0, 151, 92, 235, 191, 88, 101, 192, 62, 19, 56, 59, 192, 255, 127, 255, 255, 255, 255, 255, 191, 149, 103, 221, 191, 88, 101, 192, 62, 88, 198, 62, 192, 126, 145, 255, 127, 255, 127, 0, 0, 149, 103, 221, 191, 88, 101, 192, 62, 88, 198, 62, 192, 52, 171, 255, 127, 255, 127, 0, 0, 149, 103, 221, 191, 88, 101, 192, 62, 88, 198, 62, 192, 255, 127, 255, 255, 255, 255, 255, 191, 225, 238, 205, 191, 248, 46, 155, 61, 0, 0, 64, 192, 255, 127, 255, 127, 255, 127, 0, 0, 225, 238, 205, 191, 248, 46, 155, 61, 0, 0, 64, 192, 126, 145, 255, 127, 255, 127, 0, 0, 0, 0, 0, 192, 248, 46, 155, 61, 112, 247, 38, 192, 127, 238, 255, 127, 255, 127, 0, 0, 0, 0, 0, 192, 248, 46, 155, 61, 112, 247, 38, 192, 255, 255, 255, 127, 255, 127, 0, 0, 149, 103, 221, 191, 248, 46, 155, 61, 88, 198, 62, 192, 126, 145, 255, 127, 255, 127, 0, 0, 149, 103, 221, 191, 248, 46, 155, 61, 88, 198, 62, 192, 52, 171, 255, 127, 255, 127, 0, 0, 151, 92, 235, 191, 248, 46, 155, 61, 19, 56, 59, 192, 52, 171, 255, 127, 255, 127, 0, 0, 151, 92, 235, 191, 248, 46, 155, 61, 19, 56, 59, 192, 255, 191, 255, 127, 255, 127, 0, 0, 37, 112, 246, 191, 248, 46, 155, 61, 76, 174, 53, 192, 255, 191, 255, 127, 255, 127, 0, 0, 37, 112, 246, 191, 248, 46, 155, 61, 76, 174, 53, 192, 202, 212, 255, 127, 255, 127, 0, 0, 174, 140, 253, 191, 248, 46, 155, 61, 203, 179, 46, 192, 202, 212, 255, 127, 255, 127, 0, 0, 174, 140, 253, 191, 248, 46, 155, 61, 203, 179, 46, 192, 127, 238, 255, 127, 255, 127, 0, 0, 225, 238, 205, 191, 88, 101, 192, 62, 0, 0, 64, 64, 255, 255, 255, 255, 255, 127, 0, 0, 225, 238, 205, 191, 88, 101, 192, 62, 0, 0, 64, 64, 255, 127, 255, 255, 255, 255, 255, 191, 225, 238, 205, 191, 88, 101, 192, 62, 0, 0, 64, 64, 255, 255, 127, 238, 255, 127, 0, 0, 225, 238, 205, 191, 88, 101, 192, 62, 0, 0, 64, 64, 255, 127, 255, 255, 255, 255, 255, 191, 0, 0, 0, 192, 88, 101, 192, 62, 112, 247, 38, 64, 255, 127, 255, 255, 255, 255, 255, 191, 0, 0, 0, 192, 88, 101, 192, 62, 112, 247, 38, 64, 255, 255, 126, 145, 255, 127, 0, 0, 0, 0, 0, 192, 88, 101, 192, 62, 112, 247, 38, 64, 255, 255, 255, 127, 255, 127, 0, 0, 149, 103, 221, 191, 88, 101, 192, 62, 88, 198, 62, 64, 255, 255, 127, 238, 255, 127, 0, 0, 149, 103, 221, 191, 88, 101, 192, 62, 88, 198, 62, 64, 255, 255, 202, 212, 255, 127, 0, 0, 149, 103, 221, 191, 88, 101, 192, 62, 88, 198, 62, 64, 255, 127, 255, 255, 255, 255, 255, 191, 151, 92, 235, 191, 88, 101, 192, 62, 19, 56, 59, 64, 255, 255, 202, 212, 255, 127, 0, 0, 151, 92, 235, 191, 88, 101, 192, 62, 19, 56, 59, 64, 255, 127, 255, 255, 255, 255, 255, 191, 151, 92, 235, 191, 88, 101, 192, 62, 19, 56, 59, 64, 255, 255, 255, 191, 255, 127, 0, 0, 37, 112, 246, 191, 88, 101, 192, 62, 76, 174, 53, 64, 255, 127, 255, 255, 255, 255, 255, 191, 37, 112, 246, 191, 88, 101, 192, 62, 76, 174, 53, 64, 255, 255, 255, 191, 255, 127, 0, 0, 37, 112, 246, 191, 88, 101, 192, 62, 76, 174, 53, 64, 255, 255, 52, 171, 255, 127, 0, 0, 174, 140, 253, 191, 88, 101, 192, 62, 203, 179, 46, 64, 255, 127, 255, 255, 255, 255, 255, 191, 174, 140, 253, 191, 88, 101, 192, 62, 203, 179, 46, 64, 255, 255, 52, 171, 255, 127, 0, 0, 174, 140, 253, 191, 88, 101, 192, 62, 203, 179, 46, 64, 255, 255, 126, 145, 255, 127, 0, 0, 0, 0, 0, 192, 248, 46, 155, 61, 112, 247, 38, 64, 255, 255, 126, 145, 255, 127, 0, 0, 0, 0, 0, 192, 248, 46, 155, 61, 112, 247, 38, 64, 255, 255, 255, 127, 255, 127, 0, 0, 225, 238, 205, 191, 248, 46, 155, 61, 0, 0, 64, 64, 255, 255, 255, 255, 255, 127, 0, 0, 225, 238, 205, 191, 248, 46, 155, 61, 0, 0, 64, 64, 255, 255, 127, 238, 255, 127, 0, 0, 174, 140, 253, 191, 248, 46, 155, 61, 203, 179, 46, 64, 255, 255, 52, 171, 255, 127, 0, 0, 174, 140, 253, 191, 248, 46, 155, 61, 203, 179, 46, 64, 255, 255, 126, 145, 255, 127, 0, 0, 37, 112, 246, 191, 248, 46, 155, 61, 76, 174, 53, 64, 255, 255, 255, 191, 255, 127, 0, 0, 37, 112, 246, 191, 248, 46, 155, 61, 76, 174, 53, 64, 255, 255, 52, 171, 255, 127, 0, 0, 151, 92, 235, 191, 248, 46, 155, 61, 19, 56, 59, 64, 255, 255, 202, 212, 255, 127, 0, 0, 151, 92, 235, 191, 248, 46, 155, 61, 19, 56, 59, 64, 255, 255, 255, 191, 255, 127, 0, 0, 149, 103, 221, 191, 248, 46, 155, 61, 88, 198, 62, 64, 255, 255, 127, 238, 255, 127, 0, 0, 149, 103, 221, 191, 248, 46, 155, 61, 88, 198, 62, 64, 255, 255, 202, 212, 255, 127, 0, 0, 0, 0, 0, 191, 228, 253, 51, 62, 0, 0, 64, 192, 255, 127, 255, 127, 255, 127, 0, 0, 0, 0, 0, 191, 248, 46, 155, 61, 0, 0, 64, 192, 255, 127, 255, 127, 255, 127, 0, 0, 0, 0, 0, 63, 248, 46, 155, 61, 0, 0, 64, 192, 255, 127, 255, 127, 255, 127, 0, 0, 0, 0, 0, 63, 228, 253, 51, 62, 0, 0, 64, 192, 255, 127, 255, 127, 255, 127, 0, 0, 0, 0, 0, 191, 248, 46, 155, 61, 0, 0, 64, 64, 255, 255, 255, 255, 255, 127, 0, 0, 0, 0, 0, 191, 228, 253, 51, 62, 0, 0, 64, 64, 255, 255, 255, 255, 248, 127, 3, 0, 0, 0, 0, 63, 228, 253, 51, 62, 0, 0, 64, 64, 255, 255, 255, 255, 255, 127, 0, 0, 0, 0, 0, 63, 248, 46, 155, 61, 0, 0, 64, 64, 255, 255, 255, 255, 255, 127, 0, 0, 174, 140, 253, 63, 88, 101, 192, 62, 203, 179, 46, 192, 105, 123, 151, 16, 255, 127, 0, 0, 0, 0, 0, 64, 248, 46, 155, 61, 112, 247, 38, 192, 111, 60, 143, 67, 255, 127, 0, 0, 225, 238, 205, 63, 248, 46, 155, 61, 0, 0, 64, 192, 161, 118, 67, 43, 255, 127, 0, 0, 225, 238, 205, 63, 248, 46, 155, 61, 0, 0, 64, 192, 255, 127, 146, 29, 255, 127, 0, 0, 149, 103, 221, 63, 248, 46, 155, 61, 88, 198, 62, 192, 219, 83, 190, 112, 255, 127, 0, 0, 149, 103, 221, 63, 88, 101, 192, 62, 88, 198, 62, 64, 186, 107, 179, 16, 255, 127, 0, 0, 0, 0, 0, 64, 248, 46, 155, 61, 112, 247, 38, 64, 37, 49, 218, 78, 255, 127, 0, 0, 0, 0, 0, 64, 248, 46, 155, 61, 112, 247, 38, 64, 225, 82, 7, 36, 255, 127, 0, 0, 174, 140, 253, 63, 248, 46, 155, 61, 203, 179, 46, 64, 83, 58, 191, 49, 255, 127, 0, 0, 174, 140, 253, 63, 248, 46, 155, 61, 203, 179, 46, 64, 0, 0, 146, 188, 255, 127, 0, 0, 225, 238, 205, 191, 88, 101, 192, 62, 0, 0, 64, 192, 255, 127, 104, 41, 255, 127, 0, 0, 225, 238, 205, 191, 248, 46, 155, 61, 0, 0, 64, 192, 255, 127, 0, 0, 255, 127, 0, 0, 149, 103, 221, 191, 248, 46, 155, 61, 88, 198, 62, 192, 255, 127, 0, 0, 255, 127, 0, 0, 151, 92, 235, 191, 248, 46, 155, 61, 19, 56, 59, 192, 255, 127, 0, 0, 255, 127, 0, 0, 37, 112, 246, 191, 248, 46, 155, 61, 76, 174, 53, 192, 255, 127, 0, 0, 255, 127, 0, 0, 174, 140, 253, 191, 248, 46, 155, 61, 203, 179, 46, 192, 255, 255, 255, 127, 255, 127, 0, 0, 174, 140, 253, 191, 248, 46, 155, 61, 203, 179, 46, 192, 255, 127, 0, 0, 255, 127, 0, 0, 0, 0, 0, 192, 88, 101, 192, 62, 112, 247, 38, 64, 255, 127, 0, 0, 255, 127, 0, 0)
|
77 |
+
}, {
|
78 |
+
"aabb": AABB(-2, 0.0757732, -3, 4.00001, 9.99868e-06, 6),
|
79 |
+
"attribute_data": PackedByteArray(0, 0, 192, 62, 208, 167, 247, 62, 184, 123, 179, 62, 0, 0, 0, 63, 44, 99, 191, 62, 238, 59, 250, 62, 10, 156, 189, 62, 110, 143, 252, 62, 38, 215, 186, 62, 6, 104, 254, 62, 229, 89, 183, 62, 116, 151, 255, 62, 184, 123, 179, 62, 0, 0, 128, 62, 0, 0, 192, 62, 48, 88, 136, 62, 229, 89, 183, 62, 140, 104, 128, 62, 38, 215, 186, 62, 250, 151, 129, 62, 8, 156, 189, 62, 146, 112, 131, 62, 44, 99, 191, 62, 18, 196, 133, 62, 144, 8, 25, 62, 0, 0, 0, 63, 0, 0, 0, 62, 208, 167, 247, 62, 53, 76, 17, 62, 116, 151, 255, 62, 181, 81, 10, 62, 6, 104, 254, 62, 238, 199, 4, 62, 110, 143, 252, 62, 170, 57, 1, 62, 238, 59, 250, 62, 0, 0, 0, 62, 48, 88, 136, 62, 143, 8, 25, 62, 0, 0, 128, 62, 170, 57, 1, 62, 18, 196, 133, 62, 237, 199, 4, 62, 146, 112, 131, 62, 181, 81, 10, 62, 250, 151, 129, 62, 53, 76, 17, 62, 144, 104, 128, 62, 204, 204, 108, 62, 0, 0, 0, 63, 0, 0, 96, 62, 0, 0, 0, 63, 0, 0, 144, 62, 0, 0, 0, 63, 0, 0, 96, 62, 0, 0, 128, 62, 0, 0, 144, 62, 0, 0, 128, 62, 154, 153, 137, 62, 0, 0, 128, 62),
|
80 |
+
"format": 4119,
|
81 |
+
"index_count": 84,
|
82 |
+
"index_data": PackedByteArray(22, 0, 19, 0, 23, 0, 22, 0, 27, 0, 19, 0, 20, 0, 22, 0, 21, 0, 13, 0, 20, 0, 18, 0, 16, 0, 13, 0, 17, 0, 14, 0, 16, 0, 15, 0, 25, 0, 14, 0, 12, 0, 24, 0, 14, 0, 25, 0, 14, 0, 13, 0, 16, 0, 13, 0, 22, 0, 20, 0, 22, 0, 29, 0, 27, 0, 28, 0, 8, 0, 6, 0, 22, 0, 28, 0, 29, 0, 14, 0, 22, 0, 13, 0, 26, 0, 14, 0, 24, 0, 5, 0, 26, 0, 1, 0, 3, 0, 5, 0, 4, 0, 0, 0, 3, 0, 2, 0, 11, 0, 0, 0, 7, 0, 9, 0, 11, 0, 10, 0, 28, 0, 9, 0, 8, 0, 14, 0, 28, 0, 22, 0, 5, 0, 14, 0, 26, 0, 0, 0, 5, 0, 3, 0, 9, 0, 0, 0, 11, 0, 14, 0, 9, 0, 28, 0, 0, 0, 14, 0, 5, 0, 9, 0, 14, 0, 0, 0),
|
83 |
+
"material": SubResource("StandardMaterial3D_kf563"),
|
84 |
+
"name": "Material.001",
|
85 |
+
"primitive": 3,
|
86 |
+
"vertex_count": 30,
|
87 |
+
"vertex_data": PackedByteArray(0, 0, 0, 64, 248, 46, 155, 61, 112, 247, 38, 192, 255, 127, 255, 255, 255, 255, 255, 63, 225, 238, 205, 63, 248, 46, 155, 61, 0, 0, 64, 192, 255, 127, 255, 255, 255, 255, 255, 63, 174, 140, 253, 63, 248, 46, 155, 61, 203, 179, 46, 192, 255, 127, 255, 255, 254, 255, 255, 63, 37, 112, 246, 63, 248, 46, 155, 61, 76, 174, 53, 192, 255, 127, 255, 255, 255, 255, 255, 63, 151, 92, 235, 63, 248, 46, 155, 61, 19, 56, 59, 192, 255, 127, 255, 255, 255, 255, 255, 63, 149, 103, 221, 63, 248, 46, 155, 61, 88, 198, 62, 192, 255, 127, 255, 255, 255, 255, 255, 63, 225, 238, 205, 63, 248, 46, 155, 61, 0, 0, 64, 64, 255, 127, 255, 255, 255, 255, 255, 63, 0, 0, 0, 64, 248, 46, 155, 61, 112, 247, 38, 64, 255, 127, 255, 255, 255, 255, 255, 63, 149, 103, 221, 63, 248, 46, 155, 61, 88, 198, 62, 64, 255, 127, 255, 255, 255, 255, 255, 63, 151, 92, 235, 63, 248, 46, 155, 61, 19, 56, 59, 64, 255, 127, 255, 255, 254, 255, 255, 63, 37, 112, 246, 63, 248, 46, 155, 61, 76, 174, 53, 64, 255, 127, 255, 255, 254, 255, 255, 63, 174, 140, 253, 63, 248, 46, 155, 61, 203, 179, 46, 64, 255, 127, 255, 255, 255, 255, 255, 63, 225, 238, 205, 191, 248, 46, 155, 61, 0, 0, 64, 192, 255, 127, 255, 255, 255, 255, 255, 63, 0, 0, 0, 192, 248, 46, 155, 61, 112, 247, 38, 192, 255, 127, 255, 255, 254, 255, 255, 63, 149, 103, 221, 191, 248, 46, 155, 61, 88, 198, 62, 192, 255, 127, 255, 255, 254, 255, 255, 63, 151, 92, 235, 191, 248, 46, 155, 61, 19, 56, 59, 192, 255, 127, 255, 255, 254, 255, 255, 63, 37, 112, 246, 191, 248, 46, 155, 61, 76, 174, 53, 192, 255, 127, 255, 255, 254, 255, 255, 63, 174, 140, 253, 191, 248, 46, 155, 61, 203, 179, 46, 192, 255, 127, 255, 255, 255, 255, 255, 63, 0, 0, 0, 192, 248, 46, 155, 61, 112, 247, 38, 64, 255, 127, 255, 255, 255, 255, 255, 63, 225, 238, 205, 191, 248, 46, 155, 61, 0, 0, 64, 64, 255, 127, 255, 255, 255, 255, 255, 63, 174, 140, 253, 191, 248, 46, 155, 61, 203, 179, 46, 64, 255, 127, 255, 255, 255, 255, 255, 63, 37, 112, 246, 191, 248, 46, 155, 61, 76, 174, 53, 64, 255, 127, 255, 255, 255, 255, 255, 63, 151, 92, 235, 191, 248, 46, 155, 61, 19, 56, 59, 64, 255, 127, 255, 255, 255, 255, 255, 63, 149, 103, 221, 191, 248, 46, 155, 61, 88, 198, 62, 64, 255, 127, 255, 255, 255, 255, 255, 63, 160, 153, 153, 190, 248, 46, 155, 61, 0, 0, 64, 192, 255, 127, 255, 255, 255, 255, 255, 63, 0, 0, 0, 191, 248, 46, 155, 61, 0, 0, 64, 192, 255, 127, 255, 255, 255, 255, 255, 63, 0, 0, 0, 63, 248, 46, 155, 61, 0, 0, 64, 192, 255, 127, 255, 255, 255, 255, 255, 63, 0, 0, 0, 191, 248, 46, 155, 61, 0, 0, 64, 64, 255, 127, 255, 255, 255, 255, 255, 63, 0, 0, 0, 63, 248, 46, 155, 61, 0, 0, 64, 64, 255, 127, 255, 255, 254, 255, 255, 63, 152, 153, 153, 62, 248, 46, 155, 61, 0, 0, 64, 64, 255, 127, 255, 255, 255, 255, 255, 63)
|
88 |
+
}, {
|
89 |
+
"aabb": AABB(-0.5, 0.0757732, -3.2, 1, 0.1, 6.40001),
|
90 |
+
"attribute_data": PackedByteArray(0, 0, 0, 62, 0, 0, 128, 62, 0, 0, 192, 62, 0, 0, 0, 0, 0, 0, 192, 62, 0, 0, 128, 63, 0, 0, 32, 63, 0, 0, 0, 0, 0, 0, 32, 63, 0, 0, 128, 63, 0, 0, 96, 63, 0, 0, 128, 62, 0, 0, 0, 62, 0, 0, 0, 63, 0, 0, 192, 62, 0, 0, 64, 63, 0, 0, 192, 62, 0, 0, 64, 63, 0, 0, 192, 62, 0, 0, 128, 62, 0, 0, 192, 62, 0, 0, 128, 62, 0, 0, 192, 62, 0, 0, 128, 62, 0, 0, 32, 63, 0, 0, 128, 62, 0, 0, 32, 63, 0, 0, 128, 62, 0, 0, 32, 63, 0, 0, 128, 62, 0, 0, 32, 63, 0, 0, 64, 63, 0, 0, 32, 63, 0, 0, 64, 63, 0, 0, 96, 63, 0, 0, 0, 63, 0, 0, 192, 62, 0, 0, 0, 63, 0, 0, 192, 62, 0, 0, 0, 63, 0, 0, 192, 62, 0, 0, 0, 63, 0, 0, 32, 63, 0, 0, 0, 63, 0, 0, 32, 63, 0, 0, 0, 63, 0, 0, 32, 63, 0, 0, 0, 63, 0, 0, 32, 63, 204, 204, 76, 63, 0, 0, 96, 63, 104, 102, 230, 62, 47, 51, 51, 62, 104, 102, 230, 62, 0, 0, 0, 62, 104, 102, 230, 62, 0, 0, 192, 62, 204, 204, 76, 63, 0, 0, 192, 62, 104, 102, 230, 62, 0, 0, 192, 62, 104, 102, 230, 62, 0, 0, 32, 63, 104, 102, 230, 62, 0, 0, 32, 63, 104, 102, 230, 62, 0, 0, 0, 62, 154, 153, 153, 62, 0, 0, 192, 62, 51, 51, 115, 63, 0, 0, 32, 63, 51, 51, 115, 63, 0, 0, 96, 63, 154, 153, 153, 62, 0, 0, 32, 63, 154, 153, 153, 62, 0, 0, 32, 63, 154, 153, 153, 62, 0, 0, 192, 62, 154, 153, 153, 62, 0, 0, 192, 62, 154, 153, 153, 62, 103, 102, 166, 62, 154, 153, 153, 62),
|
91 |
+
"format": 4119,
|
92 |
+
"index_count": 66,
|
93 |
+
"index_data": PackedByteArray(28, 0, 16, 0, 8, 0, 28, 0, 24, 0, 16, 0, 7, 0, 23, 0, 19, 0, 7, 0, 15, 0, 23, 0, 21, 0, 29, 0, 18, 0, 21, 0, 31, 0, 29, 0, 26, 0, 20, 0, 30, 0, 20, 0, 27, 0, 6, 0, 26, 0, 27, 0, 20, 0, 25, 0, 22, 0, 17, 0, 25, 0, 32, 0, 22, 0, 35, 0, 2, 0, 4, 0, 35, 0, 34, 0, 2, 0, 9, 0, 37, 0, 12, 0, 9, 0, 39, 0, 37, 0, 10, 0, 3, 0, 1, 0, 10, 0, 14, 0, 3, 0, 41, 0, 0, 0, 33, 0, 0, 0, 40, 0, 11, 0, 0, 0, 41, 0, 40, 0, 13, 0, 36, 0, 5, 0, 13, 0, 38, 0, 36, 0),
|
94 |
+
"material": SubResource("StandardMaterial3D_kf563"),
|
95 |
+
"name": "Material.001",
|
96 |
+
"primitive": 3,
|
97 |
+
"vertex_count": 42,
|
98 |
+
"vertex_data": PackedByteArray(0, 0, 0, 191, 248, 46, 155, 61, 205, 204, 76, 64, 255, 127, 255, 255, 255, 255, 255, 63, 0, 0, 0, 191, 248, 46, 155, 61, 205, 204, 76, 64, 255, 255, 255, 255, 255, 127, 0, 0, 0, 0, 0, 191, 248, 46, 155, 61, 205, 204, 76, 64, 255, 255, 255, 127, 255, 127, 0, 0, 0, 0, 0, 191, 228, 253, 51, 62, 205, 204, 76, 64, 255, 255, 255, 255, 255, 127, 0, 0, 0, 0, 0, 191, 228, 253, 51, 62, 205, 204, 76, 64, 255, 255, 255, 127, 255, 127, 0, 0, 0, 0, 0, 191, 228, 253, 51, 62, 205, 204, 76, 64, 255, 127, 0, 0, 0, 0, 255, 63, 0, 0, 0, 191, 248, 46, 155, 61, 204, 204, 76, 192, 255, 127, 255, 255, 255, 255, 255, 63, 0, 0, 0, 191, 248, 46, 155, 61, 204, 204, 76, 192, 255, 127, 255, 127, 255, 127, 0, 0, 0, 0, 0, 191, 248, 46, 155, 61, 204, 204, 76, 192, 255, 255, 255, 127, 255, 127, 0, 0, 0, 0, 0, 63, 248, 46, 155, 61, 205, 204, 76, 64, 0, 0, 255, 127, 255, 127, 0, 0, 0, 0, 0, 63, 248, 46, 155, 61, 205, 204, 76, 64, 255, 255, 255, 255, 255, 127, 0, 0, 0, 0, 0, 63, 248, 46, 155, 61, 205, 204, 76, 64, 255, 127, 255, 255, 255, 255, 255, 63, 0, 0, 0, 63, 228, 253, 51, 62, 205, 204, 76, 64, 0, 0, 255, 127, 255, 127, 0, 0, 0, 0, 0, 63, 228, 253, 51, 62, 205, 204, 76, 64, 255, 127, 0, 0, 0, 0, 255, 63, 0, 0, 0, 63, 228, 253, 51, 62, 205, 204, 76, 64, 255, 255, 255, 255, 255, 127, 0, 0, 0, 0, 0, 191, 228, 253, 51, 62, 204, 204, 76, 192, 255, 127, 255, 127, 255, 127, 0, 0, 0, 0, 0, 191, 228, 253, 51, 62, 204, 204, 76, 192, 255, 255, 255, 127, 255, 127, 0, 0, 0, 0, 0, 191, 228, 253, 51, 62, 204, 204, 76, 192, 255, 127, 0, 0, 0, 0, 255, 63, 0, 0, 0, 63, 248, 46, 155, 61, 204, 204, 76, 192, 0, 0, 255, 127, 255, 127, 0, 0, 0, 0, 0, 63, 248, 46, 155, 61, 204, 204, 76, 192, 255, 127, 255, 127, 255, 127, 0, 0, 0, 0, 0, 63, 248, 46, 155, 61, 204, 204, 76, 192, 255, 127, 255, 255, 255, 255, 255, 63, 0, 0, 0, 63, 228, 253, 51, 62, 204, 204, 76, 192, 0, 0, 255, 127, 255, 127, 0, 0, 0, 0, 0, 63, 228, 253, 51, 62, 204, 204, 76, 192, 255, 127, 0, 0, 0, 0, 255, 63, 0, 0, 0, 63, 228, 253, 51, 62, 204, 204, 76, 192, 255, 127, 255, 127, 255, 127, 0, 0, 0, 0, 0, 191, 228, 253, 51, 62, 0, 0, 64, 192, 255, 255, 255, 127, 255, 127, 0, 0, 0, 0, 0, 191, 228, 253, 51, 62, 0, 0, 64, 192, 255, 127, 0, 0, 0, 0, 255, 63, 160, 153, 153, 190, 248, 46, 155, 61, 0, 0, 64, 192, 255, 127, 255, 255, 255, 255, 255, 63, 0, 0, 0, 191, 248, 46, 155, 61, 0, 0, 64, 192, 255, 127, 255, 255, 255, 255, 255, 63, 0, 0, 0, 191, 248, 46, 155, 61, 0, 0, 64, 192, 255, 255, 255, 127, 255, 127, 0, 0, 0, 0, 0, 63, 248, 46, 155, 61, 0, 0, 64, 192, 0, 0, 255, 127, 255, 127, 0, 0, 0, 0, 0, 63, 248, 46, 155, 61, 0, 0, 64, 192, 255, 127, 255, 255, 255, 255, 255, 63, 0, 0, 0, 63, 228, 253, 51, 62, 0, 0, 64, 192, 0, 0, 255, 127, 255, 127, 0, 0, 0, 0, 0, 63, 228, 253, 51, 62, 0, 0, 64, 192, 255, 127, 0, 0, 0, 0, 255, 63, 0, 0, 0, 191, 248, 46, 155, 61, 0, 0, 64, 64, 255, 127, 255, 255, 255, 255, 255, 63, 0, 0, 0, 191, 248, 46, 155, 61, 0, 0, 64, 64, 255, 255, 255, 127, 255, 127, 0, 0, 0, 0, 0, 191, 228, 253, 51, 62, 0, 0, 64, 64, 255, 255, 255, 127, 255, 127, 0, 0, 0, 0, 0, 191, 228, 253, 51, 62, 0, 0, 64, 64, 255, 127, 0, 0, 0, 0, 255, 63, 0, 0, 0, 63, 228, 253, 51, 62, 0, 0, 64, 64, 0, 0, 255, 127, 255, 127, 0, 0, 0, 0, 0, 63, 228, 253, 51, 62, 0, 0, 64, 64, 255, 127, 0, 0, 0, 0, 255, 63, 0, 0, 0, 63, 248, 46, 155, 61, 0, 0, 64, 64, 0, 0, 255, 127, 255, 127, 0, 0, 0, 0, 0, 63, 248, 46, 155, 61, 0, 0, 64, 64, 255, 127, 255, 255, 255, 255, 255, 63, 152, 153, 153, 62, 248, 46, 155, 61, 0, 0, 64, 64, 255, 127, 255, 255, 255, 255, 255, 63)
|
99 |
+
}]
|
100 |
+
blend_shape_mode = 0
|
101 |
+
shadow_mesh = SubResource("ArrayMesh_m66dv")
|
102 |
+
|
103 |
+
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_sovth"]
|
104 |
+
albedo_color = Color(0, 0, 0, 1)
|
105 |
+
|
106 |
+
[sub_resource type="BoxMesh" id="BoxMesh_22b21"]
|
107 |
+
material = SubResource("StandardMaterial3D_sovth")
|
108 |
+
size = Vector3(4, 0.1, 0.05)
|
109 |
+
|
110 |
+
[sub_resource type="BoxShape3D" id="BoxShape3D_prddk"]
|
111 |
+
size = Vector3(5, 2, 0.05)
|
112 |
+
|
113 |
+
[sub_resource type="BoxShape3D" id="BoxShape3D_pi1b7"]
|
114 |
+
size = Vector3(1.05, 1, 1.237)
|
115 |
+
|
116 |
+
[node name="GameScene" type="Node3D"]
|
117 |
+
|
118 |
+
[node name="Pusher" parent="." node_paths=PackedStringArray("puck", "goal", "other_player") instance=ExtResource("1_ru1sq")]
|
119 |
+
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0.135, -1.6176)
|
120 |
+
collision_mask = 515
|
121 |
+
puck = NodePath("../Puck")
|
122 |
+
goal = NodePath("../Goal2")
|
123 |
+
other_player = NodePath("../Pusher2")
|
124 |
+
|
125 |
+
[node name="AIController3D" parent="Pusher" index="2" node_paths=PackedStringArray("raycast_sensor", "other_player_raycast_sensor", "puck")]
|
126 |
+
raycast_sensor = NodePath("../RayCastSensor3D")
|
127 |
+
other_player_raycast_sensor = NodePath("../../Pusher2/RayCastSensor3D")
|
128 |
+
puck = NodePath("../../Puck")
|
129 |
+
|
130 |
+
[node name="Pusher2" parent="." node_paths=PackedStringArray("puck", "goal", "other_player") instance=ExtResource("1_ru1sq")]
|
131 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.135, 1.618)
|
132 |
+
puck = NodePath("../Puck")
|
133 |
+
goal = NodePath("../Goal2")
|
134 |
+
other_player = NodePath("../Pusher")
|
135 |
+
|
136 |
+
[node name="AIController3D" parent="Pusher2" index="2" node_paths=PackedStringArray("raycast_sensor", "other_player_raycast_sensor", "puck")]
|
137 |
+
raycast_sensor = NodePath("../../Pusher/RayCastSensor3D")
|
138 |
+
other_player_raycast_sensor = NodePath("../../Pusher/RayCastSensor3D")
|
139 |
+
puck = NodePath("../../Puck")
|
140 |
+
|
141 |
+
[node name="Puck" parent="." instance=ExtResource("2_qvw6c")]
|
142 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00724453, 0.133721, 0.00683117)
|
143 |
+
collision_mask = 5
|
144 |
+
gravity_scale = 1.0
|
145 |
+
script = ExtResource("3_ai667")
|
146 |
+
|
147 |
+
[node name="Table" type="StaticBody3D" parent="."]
|
148 |
+
|
149 |
+
[node name="CollisionShape3D" type="CollisionShape3D" parent="Table"]
|
150 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.05, 0)
|
151 |
+
shape = SubResource("BoxShape3D_x671e")
|
152 |
+
|
153 |
+
[node name="CollisionShape3D2" type="CollisionShape3D" parent="Table"]
|
154 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.125, 0.225, 0)
|
155 |
+
shape = SubResource("BoxShape3D_lolix")
|
156 |
+
|
157 |
+
[node name="CollisionShape3D3" type="CollisionShape3D" parent="Table"]
|
158 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.125, 0.225, 0)
|
159 |
+
shape = SubResource("BoxShape3D_lolix")
|
160 |
+
|
161 |
+
[node name="CollisionShape3D4" type="CollisionShape3D" parent="Table"]
|
162 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.225, -3.1247)
|
163 |
+
shape = SubResource("BoxShape3D_vbpub")
|
164 |
+
|
165 |
+
[node name="CollisionShape3D5" type="CollisionShape3D" parent="Table"]
|
166 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.225, 3.125)
|
167 |
+
shape = SubResource("BoxShape3D_vbpub")
|
168 |
+
|
169 |
+
[node name="corner" type="CollisionShape3D" parent="Table"]
|
170 |
+
transform = Transform3D(0.987625, 0, -0.156831, 0, 1, 0, 0.156831, 0, 0.987625, -1.69138, 0.225, 3.11313)
|
171 |
+
shape = SubResource("BoxShape3D_8mfa3")
|
172 |
+
|
173 |
+
[node name="corner2" type="CollisionShape3D" parent="Table"]
|
174 |
+
transform = Transform3D(0.882948, 0, -0.469472, 0, 1, 0, 0.469472, 0, 0.882948, -1.84145, 0.225, 3.06277)
|
175 |
+
shape = SubResource("BoxShape3D_8mfa3")
|
176 |
+
|
177 |
+
[node name="corner3" type="CollisionShape3D" parent="Table"]
|
178 |
+
transform = Transform3D(0.707107, 0, -0.707107, 0, 1, 0, 0.707107, 0, 0.707107, -1.96369, 0.225, 2.97345)
|
179 |
+
shape = SubResource("BoxShape3D_8mfa3")
|
180 |
+
|
181 |
+
[node name="corner4" type="CollisionShape3D" parent="Table"]
|
182 |
+
transform = Transform3D(0.461764, 0, -0.887003, 0, 1, 0, 0.887003, 0, 0.461764, -2.05896, 0.225, 2.84575)
|
183 |
+
shape = SubResource("BoxShape3D_8mfa3")
|
184 |
+
|
185 |
+
[node name="corner5" type="CollisionShape3D" parent="Table"]
|
186 |
+
transform = Transform3D(0.148396, 0, -0.988928, 0, 1, 0, 0.988928, 0, 0.148396, -2.11085, 0.225, 2.68723)
|
187 |
+
shape = SubResource("BoxShape3D_8mfa3")
|
188 |
+
|
189 |
+
[node name="corner6" type="CollisionShape3D" parent="Table"]
|
190 |
+
transform = Transform3D(0.156831, 0, 0.987625, 0, 1, 0, -0.987625, 0, 0.156831, 2.11041, 0.225, 2.69458)
|
191 |
+
shape = SubResource("BoxShape3D_8mfa3")
|
192 |
+
|
193 |
+
[node name="corner7" type="CollisionShape3D" parent="Table"]
|
194 |
+
transform = Transform3D(0.469472, 0, 0.882948, 0, 1, 0, -0.882948, 0, 0.469472, 2.06005, 0.225, 2.84465)
|
195 |
+
shape = SubResource("BoxShape3D_8mfa3")
|
196 |
+
|
197 |
+
[node name="corner8" type="CollisionShape3D" parent="Table"]
|
198 |
+
transform = Transform3D(0.707107, 0, 0.707107, 0, 1, 0, -0.707107, 0, 0.707107, 1.97073, 0.225, 2.96689)
|
199 |
+
shape = SubResource("BoxShape3D_8mfa3")
|
200 |
+
|
201 |
+
[node name="corner9" type="CollisionShape3D" parent="Table"]
|
202 |
+
transform = Transform3D(0.887003, 0, 0.461764, 0, 1, 0, -0.461764, 0, 0.887003, 1.84303, 0.225, 3.06216)
|
203 |
+
shape = SubResource("BoxShape3D_8mfa3")
|
204 |
+
|
205 |
+
[node name="corner10" type="CollisionShape3D" parent="Table"]
|
206 |
+
transform = Transform3D(0.988928, 0, 0.148396, 0, 1, 0, -0.148396, 0, 0.988928, 1.68451, 0.225, 3.11405)
|
207 |
+
shape = SubResource("BoxShape3D_8mfa3")
|
208 |
+
|
209 |
+
[node name="corner11" type="CollisionShape3D" parent="Table"]
|
210 |
+
transform = Transform3D(-0.987625, 0, 0.156831, 0, 1, 0, -0.156831, 0, -0.987625, 1.69186, 0.225, -3.11453)
|
211 |
+
shape = SubResource("BoxShape3D_8mfa3")
|
212 |
+
|
213 |
+
[node name="corner12" type="CollisionShape3D" parent="Table"]
|
214 |
+
transform = Transform3D(-0.882948, 0, 0.469472, 0, 1, 0, -0.469472, 0, -0.882948, 1.84194, 0.225, -3.06418)
|
215 |
+
shape = SubResource("BoxShape3D_8mfa3")
|
216 |
+
|
217 |
+
[node name="corner13" type="CollisionShape3D" parent="Table"]
|
218 |
+
transform = Transform3D(-0.707107, 0, 0.707107, 0, 1, 0, -0.707107, 0, -0.707107, 1.96417, 0.225, -2.97485)
|
219 |
+
shape = SubResource("BoxShape3D_8mfa3")
|
220 |
+
|
221 |
+
[node name="corner14" type="CollisionShape3D" parent="Table"]
|
222 |
+
transform = Transform3D(-0.461764, 0, 0.887003, 0, 1, 0, -0.887003, 0, -0.461764, 2.05944, 0.225, -2.84715)
|
223 |
+
shape = SubResource("BoxShape3D_8mfa3")
|
224 |
+
|
225 |
+
[node name="corner15" type="CollisionShape3D" parent="Table"]
|
226 |
+
transform = Transform3D(-0.148396, 0, 0.988928, 0, 1, 0, -0.988928, 0, -0.148396, 2.11133, 0.225, -2.68863)
|
227 |
+
shape = SubResource("BoxShape3D_8mfa3")
|
228 |
+
|
229 |
+
[node name="corner16" type="CollisionShape3D" parent="Table"]
|
230 |
+
transform = Transform3D(-0.156831, 0, -0.987625, 0, 1, 0, 0.987625, 0, -0.156831, -2.10993, 0.225, -2.69598)
|
231 |
+
shape = SubResource("BoxShape3D_8mfa3")
|
232 |
+
|
233 |
+
[node name="corner17" type="CollisionShape3D" parent="Table"]
|
234 |
+
transform = Transform3D(-0.469471, 0, -0.882948, 0, 1, 0, 0.882948, 0, -0.469471, -2.05957, 0.225, -2.84606)
|
235 |
+
shape = SubResource("BoxShape3D_8mfa3")
|
236 |
+
|
237 |
+
[node name="corner18" type="CollisionShape3D" parent="Table"]
|
238 |
+
transform = Transform3D(-0.707107, 0, -0.707107, 0, 1, 0, 0.707107, 0, -0.707107, -1.97025, 0.225, -2.96829)
|
239 |
+
shape = SubResource("BoxShape3D_8mfa3")
|
240 |
+
|
241 |
+
[node name="corner19" type="CollisionShape3D" parent="Table"]
|
242 |
+
transform = Transform3D(-0.887003, 0, -0.461764, 0, 1, 0, 0.461764, 0, -0.887003, -1.84254, 0.225, -3.06356)
|
243 |
+
shape = SubResource("BoxShape3D_8mfa3")
|
244 |
+
|
245 |
+
[node name="corner20" type="CollisionShape3D" parent="Table"]
|
246 |
+
transform = Transform3D(-0.988928, 0, -0.148397, 0, 1, 0, 0.148397, 0, -0.988928, -1.68403, 0.225, -3.11545)
|
247 |
+
shape = SubResource("BoxShape3D_8mfa3")
|
248 |
+
|
249 |
+
[node name="table" type="MeshInstance3D" parent="Table"]
|
250 |
+
mesh = SubResource("ArrayMesh_3768v")
|
251 |
+
skeleton = NodePath("")
|
252 |
+
|
253 |
+
[node name="middle_line" type="MeshInstance3D" parent="Table"]
|
254 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.0318991, 0)
|
255 |
+
mesh = SubResource("BoxMesh_22b21")
|
256 |
+
|
257 |
+
[node name="MiddleBarrier" type="StaticBody3D" parent="."]
|
258 |
+
collision_layer = 512
|
259 |
+
collision_mask = 0
|
260 |
+
|
261 |
+
[node name="CollisionShape3D" type="CollisionShape3D" parent="MiddleBarrier"]
|
262 |
+
shape = SubResource("BoxShape3D_prddk")
|
263 |
+
|
264 |
+
[node name="Goal" type="Area3D" parent="."]
|
265 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -3.55233)
|
266 |
+
collision_layer = 0
|
267 |
+
collision_mask = 2
|
268 |
+
monitorable = false
|
269 |
+
|
270 |
+
[node name="CollisionShape3D" type="CollisionShape3D" parent="Goal"]
|
271 |
+
shape = SubResource("BoxShape3D_pi1b7")
|
272 |
+
|
273 |
+
[node name="Goal2" type="Area3D" parent="."]
|
274 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 3.552)
|
275 |
+
collision_layer = 0
|
276 |
+
collision_mask = 2
|
277 |
+
monitorable = false
|
278 |
+
|
279 |
+
[node name="CollisionShape3D" type="CollisionShape3D" parent="Goal2"]
|
280 |
+
shape = SubResource("BoxShape3D_pi1b7")
|
281 |
+
|
282 |
+
[connection signal="body_entered" from="Goal" to="Pusher2" method="_on_goal_body_entered"]
|
283 |
+
[connection signal="body_entered" from="Goal" to="Puck" method="_on_goal_body_entered"]
|
284 |
+
[connection signal="body_entered" from="Goal2" to="Pusher" method="_on_goal_body_entered"]
|
285 |
+
[connection signal="body_entered" from="Goal2" to="Puck" method="_on_goal_body_entered"]
|
286 |
+
|
287 |
+
[editable path="Pusher"]
|
288 |
+
[editable path="Pusher2"]
|
scenes/GameScene/puck.gd
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
extends RigidBody3D
|
2 |
+
class_name Puck
|
3 |
+
|
4 |
+
var _initial_position: Vector3
|
5 |
+
|
6 |
+
func _ready():
|
7 |
+
_initial_position = position
|
8 |
+
reset()
|
9 |
+
|
10 |
+
func _on_goal_body_entered(_body):
|
11 |
+
reset()
|
12 |
+
|
13 |
+
func reset():
|
14 |
+
position = _initial_position + (Vector3.RIGHT * randf_range(-1.2,1.2))
|
15 |
+
linear_velocity = Vector3.ZERO
|
scenes/GameScene/puck.tscn
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[gd_scene load_steps=6 format=3 uid="uid://dtj1k6ombd4qm"]
|
2 |
+
|
3 |
+
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_rjp52"]
|
4 |
+
friction = 0.01
|
5 |
+
bounce = 0.5
|
6 |
+
|
7 |
+
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_vqhyw"]
|
8 |
+
resource_name = "Material.002"
|
9 |
+
cull_mode = 2
|
10 |
+
vertex_color_use_as_albedo = true
|
11 |
+
albedo_color = Color(0.492203, 0.00604811, 0, 1)
|
12 |
+
|
13 |
+
[sub_resource type="ArrayMesh" id="ArrayMesh_k1b3a"]
|
14 |
+
_surfaces = [{
|
15 |
+
"aabb": AABB(-0.2, -0.025, -0.2, 0.4, 0.05, 0.4),
|
16 |
+
"format": 4097,
|
17 |
+
"index_count": 372,
|
18 |
+
"index_data": PackedByteArray(0, 0, 3, 0, 1, 0, 0, 0, 2, 0, 3, 0, 2, 0, 5, 0, 3, 0, 2, 0, 4, 0, 5, 0, 4, 0, 7, 0, 5, 0, 4, 0, 6, 0, 7, 0, 6, 0, 9, 0, 7, 0, 6, 0, 8, 0, 9, 0, 8, 0, 11, 0, 9, 0, 8, 0, 10, 0, 11, 0, 10, 0, 13, 0, 11, 0, 10, 0, 12, 0, 13, 0, 12, 0, 15, 0, 13, 0, 12, 0, 14, 0, 15, 0, 14, 0, 17, 0, 15, 0, 14, 0, 16, 0, 17, 0, 16, 0, 19, 0, 17, 0, 16, 0, 18, 0, 19, 0, 18, 0, 21, 0, 19, 0, 18, 0, 20, 0, 21, 0, 20, 0, 23, 0, 21, 0, 20, 0, 22, 0, 23, 0, 22, 0, 25, 0, 23, 0, 22, 0, 24, 0, 25, 0, 24, 0, 27, 0, 25, 0, 24, 0, 26, 0, 27, 0, 26, 0, 29, 0, 27, 0, 26, 0, 28, 0, 29, 0, 28, 0, 31, 0, 29, 0, 28, 0, 30, 0, 31, 0, 30, 0, 33, 0, 31, 0, 30, 0, 32, 0, 33, 0, 32, 0, 35, 0, 33, 0, 32, 0, 34, 0, 35, 0, 34, 0, 37, 0, 35, 0, 34, 0, 36, 0, 37, 0, 36, 0, 39, 0, 37, 0, 36, 0, 38, 0, 39, 0, 38, 0, 41, 0, 39, 0, 38, 0, 40, 0, 41, 0, 40, 0, 43, 0, 41, 0, 40, 0, 42, 0, 43, 0, 42, 0, 45, 0, 43, 0, 42, 0, 44, 0, 45, 0, 44, 0, 47, 0, 45, 0, 44, 0, 46, 0, 47, 0, 46, 0, 49, 0, 47, 0, 46, 0, 48, 0, 49, 0, 48, 0, 51, 0, 49, 0, 48, 0, 50, 0, 51, 0, 50, 0, 53, 0, 51, 0, 50, 0, 52, 0, 53, 0, 52, 0, 55, 0, 53, 0, 52, 0, 54, 0, 55, 0, 54, 0, 57, 0, 55, 0, 54, 0, 56, 0, 57, 0, 56, 0, 59, 0, 57, 0, 56, 0, 58, 0, 59, 0, 58, 0, 61, 0, 59, 0, 58, 0, 60, 0, 61, 0, 5, 0, 1, 0, 3, 0, 1, 0, 61, 0, 63, 0, 61, 0, 57, 0, 59, 0, 57, 0, 53, 0, 55, 0, 53, 0, 49, 0, 51, 0, 49, 0, 45, 0, 47, 0, 45, 0, 41, 0, 43, 0, 41, 0, 37, 0, 39, 0, 37, 0, 33, 0, 35, 0, 33, 0, 29, 0, 31, 0, 29, 0, 25, 0, 27, 0, 25, 0, 21, 0, 23, 0, 21, 0, 17, 0, 19, 0, 17, 0, 13, 0, 15, 0, 13, 0, 9, 0, 11, 0, 9, 0, 5, 0, 7, 0, 5, 0, 61, 0, 1, 0, 61, 0, 53, 0, 57, 0, 53, 0, 45, 0, 49, 0, 45, 0, 37, 0, 41, 0, 37, 0, 29, 0, 33, 0, 29, 0, 21, 0, 25, 0, 21, 0, 13, 0, 17, 0, 13, 0, 5, 0, 9, 0, 5, 0, 53, 0, 61, 0, 53, 0, 37, 0, 45, 0, 37, 0, 21, 0, 29, 0, 21, 0, 5, 0, 13, 0, 5, 0, 37, 0, 53, 0, 37, 0, 5, 0, 21, 0, 60, 0, 63, 0, 61, 0, 60, 0, 62, 0, 63, 0, 62, 0, 1, 0, 63, 0, 62, 0, 0, 0, 1, 0, 62, 0, 2, 0, 0, 0, 2, 0, 6, 0, 4, 0, 6, 0, 10, 0, 8, 0, 10, 0, 14, 0, 12, 0, 14, 0, 18, 0, 16, 0, 18, 0, 22, 0, 20, 0, 22, 0, 26, 0, 24, 0, 26, 0, 30, 0, 28, 0, 30, 0, 34, 0, 32, 0, 34, 0, 38, 0, 36, 0, 38, 0, 42, 0, 40, 0, 42, 0, 46, 0, 44, 0, 46, 0, 50, 0, 48, 0, 50, 0, 54, 0, 52, 0, 54, 0, 58, 0, 56, 0, 58, 0, 62, 0, 60, 0, 62, 0, 6, 0, 2, 0, 6, 0, 14, 0, 10, 0, 14, 0, 22, 0, 18, 0, 22, 0, 30, 0, 26, 0, 30, 0, 38, 0, 34, 0, 38, 0, 46, 0, 42, 0, 46, 0, 54, 0, 50, 0, 54, 0, 62, 0, 58, 0, 62, 0, 14, 0, 6, 0, 14, 0, 30, 0, 22, 0, 30, 0, 46, 0, 38, 0, 46, 0, 62, 0, 54, 0, 62, 0, 30, 0, 14, 0, 30, 0, 62, 0, 46, 0),
|
19 |
+
"lods": [0.0100896, PackedByteArray(0, 0, 5, 0, 1, 0, 0, 0, 2, 0, 5, 0, 2, 0, 4, 0, 5, 0, 4, 0, 13, 0, 5, 0, 4, 0, 8, 0, 13, 0, 8, 0, 10, 0, 13, 0, 10, 0, 16, 0, 13, 0, 16, 0, 21, 0, 13, 0, 16, 0, 18, 0, 21, 0, 18, 0, 20, 0, 21, 0, 20, 0, 29, 0, 21, 0, 20, 0, 24, 0, 29, 0, 24, 0, 26, 0, 29, 0, 26, 0, 32, 0, 29, 0, 32, 0, 37, 0, 29, 0, 32, 0, 34, 0, 37, 0, 34, 0, 36, 0, 37, 0, 36, 0, 45, 0, 37, 0, 36, 0, 40, 0, 45, 0, 40, 0, 42, 0, 45, 0, 42, 0, 48, 0, 45, 0, 48, 0, 49, 0, 45, 0, 48, 0, 50, 0, 49, 0, 50, 0, 53, 0, 49, 0, 50, 0, 52, 0, 53, 0, 52, 0, 61, 0, 53, 0, 52, 0, 56, 0, 61, 0, 56, 0, 58, 0, 61, 0, 58, 0, 1, 0, 61, 0, 58, 0, 0, 0, 1, 0, 5, 0, 61, 0, 1, 0, 5, 0, 53, 0, 61, 0, 53, 0, 45, 0, 49, 0, 53, 0, 37, 0, 45, 0, 5, 0, 37, 0, 53, 0, 37, 0, 5, 0, 21, 0, 21, 0, 5, 0, 13, 0, 37, 0, 21, 0, 29, 0, 58, 0, 2, 0, 0, 0, 58, 0, 4, 0, 2, 0, 4, 0, 10, 0, 8, 0, 4, 0, 16, 0, 10, 0, 58, 0, 16, 0, 4, 0, 16, 0, 20, 0, 18, 0, 20, 0, 26, 0, 24, 0, 20, 0, 32, 0, 26, 0, 16, 0, 32, 0, 20, 0, 58, 0, 32, 0, 16, 0, 52, 0, 58, 0, 56, 0, 48, 0, 58, 0, 52, 0, 32, 0, 58, 0, 48, 0, 48, 0, 52, 0, 50, 0, 32, 0, 48, 0, 36, 0, 32, 0, 36, 0, 34, 0, 36, 0, 48, 0, 42, 0, 36, 0, 42, 0, 40, 0), 0.036844, PackedByteArray(0, 0, 5, 0, 1, 0, 0, 0, 2, 0, 5, 0, 2, 0, 8, 0, 5, 0, 8, 0, 16, 0, 21, 0, 16, 0, 20, 0, 21, 0, 20, 0, 32, 0, 21, 0, 32, 0, 36, 0, 37, 0, 36, 0, 40, 0, 37, 0, 40, 0, 48, 0, 53, 0, 40, 0, 53, 0, 37, 0, 32, 0, 37, 0, 21, 0, 8, 0, 21, 0, 5, 0, 48, 0, 52, 0, 53, 0, 52, 0, 61, 0, 53, 0, 52, 0, 1, 0, 61, 0, 52, 0, 0, 0, 1, 0, 5, 0, 61, 0, 1, 0, 5, 0, 53, 0, 61, 0, 5, 0, 37, 0, 53, 0, 37, 0, 5, 0, 21, 0, 52, 0, 2, 0, 0, 0, 52, 0, 8, 0, 2, 0, 8, 0, 20, 0, 16, 0, 8, 0, 32, 0, 20, 0, 52, 0, 32, 0, 8, 0, 32, 0, 52, 0, 40, 0, 40, 0, 52, 0, 48, 0, 32, 0, 40, 0, 36, 0), 0.0996534, PackedByteArray(0, 0, 5, 0, 1, 0, 0, 0, 16, 0, 5, 0, 16, 0, 32, 0, 21, 0, 32, 0, 48, 0, 37, 0, 16, 0, 21, 0, 5, 0, 32, 0, 37, 0, 21, 0, 48, 0, 53, 0, 37, 0, 5, 0, 53, 0, 1, 0, 5, 0, 37, 0, 53, 0, 37, 0, 5, 0, 21, 0, 48, 0, 1, 0, 53, 0, 48, 0, 0, 0, 1, 0, 48, 0, 16, 0, 0, 0, 48, 0, 32, 0, 16, 0)],
|
20 |
+
"name": "Material.002",
|
21 |
+
"primitive": 3,
|
22 |
+
"vertex_count": 64,
|
23 |
+
"vertex_data": PackedByteArray(0, 0, 0, 0, 205, 204, 204, 188, 205, 204, 76, 190, 0, 0, 0, 0, 205, 204, 204, 60, 205, 204, 76, 190, 104, 209, 31, 61, 205, 204, 204, 188, 101, 221, 72, 190, 104, 209, 31, 61, 205, 204, 204, 60, 101, 221, 72, 190, 69, 191, 156, 61, 205, 204, 204, 188, 229, 53, 61, 190, 69, 191, 156, 61, 205, 204, 204, 60, 229, 53, 61, 190, 195, 143, 227, 61, 205, 204, 204, 188, 244, 72, 42, 190, 195, 143, 227, 61, 205, 204, 204, 60, 244, 72, 42, 190, 195, 208, 16, 62, 205, 204, 204, 188, 195, 208, 16, 190, 195, 208, 16, 62, 205, 204, 204, 60, 195, 208, 16, 190, 244, 72, 42, 62, 205, 204, 204, 188, 195, 143, 227, 189, 244, 72, 42, 62, 205, 204, 204, 60, 195, 143, 227, 189, 229, 53, 61, 62, 205, 204, 204, 188, 69, 191, 156, 189, 229, 53, 61, 62, 205, 204, 204, 60, 69, 191, 156, 189, 101, 221, 72, 62, 205, 204, 204, 188, 104, 209, 31, 189, 101, 221, 72, 62, 205, 204, 204, 60, 104, 209, 31, 189, 205, 204, 76, 62, 205, 204, 204, 188, 0, 0, 0, 128, 205, 204, 76, 62, 205, 204, 204, 60, 0, 0, 0, 128, 101, 221, 72, 62, 205, 204, 204, 188, 104, 209, 31, 61, 101, 221, 72, 62, 205, 204, 204, 60, 104, 209, 31, 61, 229, 53, 61, 62, 205, 204, 204, 188, 69, 191, 156, 61, 229, 53, 61, 62, 205, 204, 204, 60, 69, 191, 156, 61, 244, 72, 42, 62, 205, 204, 204, 188, 195, 143, 227, 61, 244, 72, 42, 62, 205, 204, 204, 60, 195, 143, 227, 61, 195, 208, 16, 62, 205, 204, 204, 188, 195, 208, 16, 62, 195, 208, 16, 62, 205, 204, 204, 60, 195, 208, 16, 62, 195, 143, 227, 61, 205, 204, 204, 188, 244, 72, 42, 62, 195, 143, 227, 61, 205, 204, 204, 60, 244, 72, 42, 62, 69, 191, 156, 61, 205, 204, 204, 188, 229, 53, 61, 62, 69, 191, 156, 61, 205, 204, 204, 60, 229, 53, 61, 62, 104, 209, 31, 61, 205, 204, 204, 188, 101, 221, 72, 62, 104, 209, 31, 61, 205, 204, 204, 60, 101, 221, 72, 62, 0, 0, 0, 0, 205, 204, 204, 188, 205, 204, 76, 62, 0, 0, 0, 0, 205, 204, 204, 60, 205, 204, 76, 62, 104, 209, 31, 189, 205, 204, 204, 188, 101, 221, 72, 62, 104, 209, 31, 189, 205, 204, 204, 60, 101, 221, 72, 62, 69, 191, 156, 189, 205, 204, 204, 188, 229, 53, 61, 62, 69, 191, 156, 189, 205, 204, 204, 60, 229, 53, 61, 62, 195, 143, 227, 189, 205, 204, 204, 188, 244, 72, 42, 62, 195, 143, 227, 189, 205, 204, 204, 60, 244, 72, 42, 62, 195, 208, 16, 190, 205, 204, 204, 188, 195, 208, 16, 62, 195, 208, 16, 190, 205, 204, 204, 60, 195, 208, 16, 62, 244, 72, 42, 190, 205, 204, 204, 188, 195, 143, 227, 61, 244, 72, 42, 190, 205, 204, 204, 60, 195, 143, 227, 61, 229, 53, 61, 190, 205, 204, 204, 188, 69, 191, 156, 61, 229, 53, 61, 190, 205, 204, 204, 60, 69, 191, 156, 61, 101, 221, 72, 190, 205, 204, 204, 188, 104, 209, 31, 61, 101, 221, 72, 190, 205, 204, 204, 60, 104, 209, 31, 61, 205, 204, 76, 190, 205, 204, 204, 188, 0, 0, 0, 128, 205, 204, 76, 190, 205, 204, 204, 60, 0, 0, 0, 128, 101, 221, 72, 190, 205, 204, 204, 188, 104, 209, 31, 189, 101, 221, 72, 190, 205, 204, 204, 60, 104, 209, 31, 189, 229, 53, 61, 190, 205, 204, 204, 188, 69, 191, 156, 189, 229, 53, 61, 190, 205, 204, 204, 60, 69, 191, 156, 189, 244, 72, 42, 190, 205, 204, 204, 188, 195, 143, 227, 189, 244, 72, 42, 190, 205, 204, 204, 60, 195, 143, 227, 189, 195, 208, 16, 190, 205, 204, 204, 188, 195, 208, 16, 190, 195, 208, 16, 190, 205, 204, 204, 60, 195, 208, 16, 190, 195, 143, 227, 189, 205, 204, 204, 188, 244, 72, 42, 190, 195, 143, 227, 189, 205, 204, 204, 60, 244, 72, 42, 190, 69, 191, 156, 189, 205, 204, 204, 188, 229, 53, 61, 190, 69, 191, 156, 189, 205, 204, 204, 60, 229, 53, 61, 190, 104, 209, 31, 189, 205, 204, 204, 188, 101, 221, 72, 190, 104, 209, 31, 189, 205, 204, 204, 60, 101, 221, 72, 190)
|
24 |
+
}]
|
25 |
+
blend_shape_mode = 0
|
26 |
+
|
27 |
+
[sub_resource type="ArrayMesh" id="ArrayMesh_ymv1m"]
|
28 |
+
resource_name = "table-0a94a8c81d6f00960eb0e748873e0eac_Cylinder"
|
29 |
+
_surfaces = [{
|
30 |
+
"aabb": AABB(-0.2, -0.025, -0.2, 0.4, 0.05, 0.4),
|
31 |
+
"attribute_data": PackedByteArray(0, 0, 0, 0, 0, 0, 0, 63, 0, 0, 64, 63, 92, 143, 2, 63, 0, 0, 128, 63, 0, 0, 0, 63, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 62, 92, 143, 2, 63, 0, 0, 128, 63, 0, 0, 0, 0, 129, 252, 75, 63, 149, 189, 3, 63, 0, 0, 120, 63, 0, 0, 0, 63, 0, 0, 120, 63, 0, 0, 0, 63, 3, 249, 151, 62, 149, 189, 3, 63, 0, 0, 120, 63, 0, 0, 0, 0, 0, 0, 120, 63, 0, 0, 0, 0, 23, 131, 87, 63, 162, 60, 7, 63, 0, 0, 112, 63, 0, 0, 0, 63, 0, 0, 112, 63, 0, 0, 0, 63, 46, 6, 175, 62, 162, 60, 7, 63, 0, 0, 112, 63, 0, 0, 0, 0, 0, 0, 112, 63, 0, 0, 0, 0, 93, 34, 98, 63, 29, 234, 12, 63, 0, 0, 104, 63, 0, 0, 0, 63, 0, 0, 104, 63, 0, 0, 0, 63, 186, 68, 196, 62, 29, 234, 12, 63, 0, 0, 104, 63, 0, 0, 0, 0, 0, 0, 104, 63, 0, 0, 0, 0, 0, 0, 96, 63, 0, 0, 0, 63, 0, 0, 96, 63, 0, 0, 0, 63, 212, 113, 107, 63, 44, 142, 20, 63, 168, 227, 214, 62, 44, 142, 20, 63, 0, 0, 96, 63, 0, 0, 0, 0, 0, 0, 96, 63, 0, 0, 0, 0, 0, 0, 88, 63, 0, 0, 0, 63, 0, 0, 88, 63, 0, 0, 0, 63, 227, 21, 115, 63, 163, 221, 29, 63, 198, 43, 230, 62, 163, 221, 29, 63, 0, 0, 88, 63, 0, 0, 0, 0, 0, 0, 88, 63, 0, 0, 0, 0, 0, 0, 80, 63, 0, 0, 0, 63, 0, 0, 80, 63, 0, 0, 0, 63, 94, 195, 120, 63, 233, 124, 40, 63, 188, 134, 241, 62, 233, 124, 40, 63, 0, 0, 80, 63, 0, 0, 0, 0, 0, 0, 80, 63, 0, 0, 0, 0, 0, 0, 72, 63, 0, 0, 0, 63, 0, 0, 72, 63, 0, 0, 0, 63, 107, 66, 124, 63, 126, 3, 52, 63, 214, 132, 248, 62, 126, 3, 52, 63, 0, 0, 72, 63, 0, 0, 0, 0, 0, 0, 72, 63, 0, 0, 0, 0, 0, 0, 64, 63, 0, 0, 0, 63, 0, 0, 64, 63, 0, 0, 0, 63, 164, 112, 125, 63, 0, 0, 64, 63, 72, 225, 250, 62, 0, 0, 64, 63, 0, 0, 64, 63, 0, 0, 0, 0, 0, 0, 64, 63, 0, 0, 0, 0, 0, 0, 56, 63, 0, 0, 0, 63, 0, 0, 56, 63, 0, 0, 0, 63, 107, 66, 124, 63, 130, 252, 75, 63, 214, 132, 248, 62, 130, 252, 75, 63, 0, 0, 56, 63, 0, 0, 0, 0, 0, 0, 56, 63, 0, 0, 0, 0, 0, 0, 48, 63, 0, 0, 0, 63, 0, 0, 48, 63, 0, 0, 0, 63, 94, 195, 120, 63, 23, 131, 87, 63, 188, 134, 241, 62, 23, 131, 87, 63, 0, 0, 48, 63, 0, 0, 0, 0, 0, 0, 48, 63, 0, 0, 0, 0, 0, 0, 40, 63, 0, 0, 0, 63, 0, 0, 40, 63, 0, 0, 0, 63, 227, 21, 115, 63, 93, 34, 98, 63, 198, 43, 230, 62, 93, 34, 98, 63, 0, 0, 40, 63, 0, 0, 0, 0, 0, 0, 40, 63, 0, 0, 0, 0, 0, 0, 32, 63, 0, 0, 0, 63, 0, 0, 32, 63, 0, 0, 0, 63, 212, 113, 107, 63, 212, 113, 107, 63, 168, 227, 214, 62, 212, 113, 107, 63, 0, 0, 32, 63, 0, 0, 0, 0, 0, 0, 32, 63, 0, 0, 0, 0, 0, 0, 24, 63, 0, 0, 0, 63, 0, 0, 24, 63, 0, 0, 0, 63, 93, 34, 98, 63, 227, 21, 115, 63, 186, 68, 196, 62, 227, 21, 115, 63, 0, 0, 24, 63, 0, 0, 0, 0, 0, 0, 24, 63, 0, 0, 0, 0, 0, 0, 16, 63, 0, 0, 0, 63, 0, 0, 16, 63, 0, 0, 0, 63, 23, 131, 87, 63, 94, 195, 120, 63, 46, 6, 175, 62, 94, 195, 120, 63, 0, 0, 16, 63, 0, 0, 0, 0, 0, 0, 16, 63, 0, 0, 0, 0, 0, 0, 8, 63, 0, 0, 0, 63, 0, 0, 8, 63, 0, 0, 0, 63, 129, 252, 75, 63, 107, 66, 124, 63, 3, 249, 151, 62, 107, 66, 124, 63, 0, 0, 8, 63, 0, 0, 0, 0, 0, 0, 8, 63, 0, 0, 0, 0, 0, 0, 0, 63, 0, 0, 0, 63, 0, 0, 0, 63, 0, 0, 0, 63, 0, 0, 64, 63, 164, 112, 125, 63, 0, 0, 128, 62, 164, 112, 125, 63, 0, 0, 0, 63, 0, 0, 0, 0, 0, 0, 0, 63, 0, 0, 0, 0, 0, 0, 240, 62, 0, 0, 0, 63, 0, 0, 240, 62, 0, 0, 0, 63, 127, 3, 52, 63, 107, 66, 124, 63, 250, 13, 80, 62, 107, 66, 124, 63, 0, 0, 240, 62, 0, 0, 0, 0, 0, 0, 240, 62, 0, 0, 0, 0, 0, 0, 224, 62, 0, 0, 0, 63, 0, 0, 224, 62, 0, 0, 0, 63, 233, 124, 40, 63, 94, 195, 120, 63, 164, 243, 33, 62, 94, 195, 120, 63, 0, 0, 224, 62, 0, 0, 0, 0, 0, 0, 224, 62, 0, 0, 0, 0, 0, 0, 208, 62, 0, 0, 0, 63, 0, 0, 208, 62, 0, 0, 0, 63, 163, 221, 29, 63, 227, 21, 115, 63, 22, 237, 238, 61, 227, 21, 115, 63, 0, 0, 208, 62, 0, 0, 0, 0, 0, 0, 208, 62, 0, 0, 0, 0, 0, 0, 192, 62, 0, 0, 0, 63, 0, 0, 192, 62, 0, 0, 0, 63, 44, 142, 20, 63, 212, 113, 107, 63, 98, 113, 164, 61, 212, 113, 107, 63, 0, 0, 192, 62, 0, 0, 0, 0, 0, 0, 192, 62, 0, 0, 0, 0, 0, 0, 176, 62, 0, 0, 0, 63, 0, 0, 176, 62, 0, 0, 0, 63, 29, 234, 12, 63, 93, 34, 98, 63, 212, 161, 78, 61, 93, 34, 98, 63, 0, 0, 176, 62, 0, 0, 0, 0, 0, 0, 176, 62, 0, 0, 0, 0, 0, 0, 160, 62, 0, 0, 0, 63, 0, 0, 160, 62, 0, 0, 0, 63, 162, 60, 7, 63, 23, 131, 87, 63, 56, 148, 231, 60, 23, 131, 87, 63, 0, 0, 160, 62, 0, 0, 0, 0, 0, 0, 160, 62, 0, 0, 0, 0, 0, 0, 144, 62, 0, 0, 0, 63, 0, 0, 144, 62, 0, 0, 0, 63, 149, 189, 3, 63, 130, 252, 75, 63, 64, 101, 111, 60, 130, 252, 75, 63, 0, 0, 144, 62, 0, 0, 0, 0, 0, 0, 144, 62, 0, 0, 0, 0, 0, 0, 128, 62, 0, 0, 0, 63, 0, 0, 128, 62, 0, 0, 0, 63, 92, 143, 2, 63, 0, 0, 64, 63, 16, 215, 35, 60, 0, 0, 64, 63, 0, 0, 128, 62, 0, 0, 0, 0, 0, 0, 128, 62, 0, 0, 0, 0, 0, 0, 96, 62, 0, 0, 0, 63, 0, 0, 96, 62, 0, 0, 0, 63, 149, 189, 3, 63, 126, 3, 52, 63, 64, 101, 111, 60, 126, 3, 52, 63, 0, 0, 96, 62, 0, 0, 0, 0, 0, 0, 96, 62, 0, 0, 0, 0, 0, 0, 64, 62, 0, 0, 0, 63, 0, 0, 64, 62, 0, 0, 0, 63, 162, 60, 7, 63, 233, 124, 40, 63, 56, 148, 231, 60, 233, 124, 40, 63, 0, 0, 64, 62, 0, 0, 0, 0, 0, 0, 64, 62, 0, 0, 0, 0, 0, 0, 32, 62, 0, 0, 0, 63, 0, 0, 32, 62, 0, 0, 0, 63, 29, 234, 12, 63, 163, 221, 29, 63, 212, 161, 78, 61, 163, 221, 29, 63, 0, 0, 32, 62, 0, 0, 0, 0, 0, 0, 32, 62, 0, 0, 0, 0, 0, 0, 0, 62, 0, 0, 0, 63, 0, 0, 0, 62, 0, 0, 0, 63, 44, 142, 20, 63, 44, 142, 20, 63, 98, 113, 164, 61, 44, 142, 20, 63, 0, 0, 0, 62, 0, 0, 0, 0, 0, 0, 0, 62, 0, 0, 0, 0, 0, 0, 192, 61, 0, 0, 0, 63, 0, 0, 192, 61, 0, 0, 0, 63, 163, 221, 29, 63, 29, 234, 12, 63, 0, 0, 192, 61, 0, 0, 0, 0, 0, 0, 192, 61, 0, 0, 0, 0, 22, 237, 238, 61, 29, 234, 12, 63, 0, 0, 128, 61, 0, 0, 0, 63, 0, 0, 128, 61, 0, 0, 0, 63, 233, 124, 40, 63, 162, 60, 7, 63, 0, 0, 128, 61, 0, 0, 0, 0, 0, 0, 128, 61, 0, 0, 0, 0, 164, 243, 33, 62, 162, 60, 7, 63, 0, 0, 0, 61, 0, 0, 0, 63, 0, 0, 0, 61, 0, 0, 0, 63, 127, 3, 52, 63, 149, 189, 3, 63, 0, 0, 0, 61, 0, 0, 0, 0, 0, 0, 0, 61, 0, 0, 0, 0, 250, 13, 80, 62, 149, 189, 3, 63, 0, 0, 0, 0, 0, 0, 0, 63, 0, 0, 128, 63, 0, 0, 0, 63, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 112, 63, 0, 0, 0, 0, 0, 0, 112, 63, 0, 0, 0, 0, 0, 0, 64, 63, 0, 0, 0, 63, 0, 0, 64, 63, 0, 0, 0, 63, 0, 0, 48, 63, 0, 0, 0, 0, 0, 0, 48, 63, 0, 0, 0, 0, 0, 0, 0, 63, 0, 0, 0, 63, 0, 0, 0, 63, 0, 0, 0, 63, 0, 0, 224, 62, 0, 0, 0, 0, 0, 0, 224, 62, 0, 0, 0, 0, 0, 0, 128, 62, 0, 0, 0, 63, 0, 0, 128, 62, 0, 0, 0, 63, 0, 0, 128, 62, 0, 0, 0, 63, 0, 0, 64, 62, 0, 0, 0, 0, 0, 0, 112, 63, 0, 0, 0, 0, 0, 0, 96, 63, 0, 0, 0, 63, 0, 0, 48, 63, 0, 0, 0, 0, 0, 0, 0, 63, 0, 0, 0, 63, 0, 0, 0, 63, 0, 0, 0, 63, 0, 0, 224, 62, 0, 0, 0, 0, 0, 0, 192, 62, 0, 0, 0, 63, 0, 0, 64, 62, 0, 0, 0, 63, 0, 0, 64, 62, 0, 0, 0, 0),
|
32 |
+
"format": 4119,
|
33 |
+
"index_count": 372,
|
34 |
+
"index_data": PackedByteArray(2, 0, 10, 0, 5, 0, 2, 0, 7, 0, 10, 0, 8, 0, 16, 0, 11, 0, 8, 0, 13, 0, 16, 0, 14, 0, 22, 0, 17, 0, 14, 0, 19, 0, 22, 0, 20, 0, 28, 0, 23, 0, 20, 0, 24, 0, 28, 0, 25, 0, 34, 0, 29, 0, 25, 0, 30, 0, 34, 0, 31, 0, 40, 0, 35, 0, 31, 0, 36, 0, 40, 0, 37, 0, 46, 0, 41, 0, 37, 0, 42, 0, 46, 0, 43, 0, 52, 0, 47, 0, 43, 0, 48, 0, 52, 0, 49, 0, 59, 0, 53, 0, 49, 0, 55, 0, 59, 0, 54, 0, 65, 0, 58, 0, 54, 0, 61, 0, 65, 0, 60, 0, 71, 0, 64, 0, 60, 0, 67, 0, 71, 0, 66, 0, 77, 0, 70, 0, 66, 0, 73, 0, 77, 0, 72, 0, 83, 0, 76, 0, 72, 0, 79, 0, 83, 0, 78, 0, 89, 0, 82, 0, 78, 0, 85, 0, 89, 0, 84, 0, 95, 0, 88, 0, 84, 0, 91, 0, 95, 0, 90, 0, 101, 0, 94, 0, 90, 0, 97, 0, 101, 0, 96, 0, 107, 0, 100, 0, 96, 0, 103, 0, 107, 0, 102, 0, 113, 0, 106, 0, 102, 0, 109, 0, 113, 0, 108, 0, 119, 0, 112, 0, 108, 0, 115, 0, 119, 0, 114, 0, 125, 0, 118, 0, 114, 0, 121, 0, 125, 0, 120, 0, 131, 0, 124, 0, 120, 0, 127, 0, 131, 0, 126, 0, 137, 0, 130, 0, 126, 0, 133, 0, 137, 0, 132, 0, 143, 0, 136, 0, 132, 0, 139, 0, 143, 0, 138, 0, 149, 0, 142, 0, 138, 0, 145, 0, 149, 0, 144, 0, 154, 0, 148, 0, 144, 0, 150, 0, 154, 0, 151, 0, 160, 0, 155, 0, 151, 0, 156, 0, 160, 0, 157, 0, 166, 0, 161, 0, 157, 0, 162, 0, 166, 0, 163, 0, 172, 0, 167, 0, 163, 0, 168, 0, 172, 0, 169, 0, 177, 0, 173, 0, 169, 0, 174, 0, 177, 0, 175, 0, 183, 0, 178, 0, 175, 0, 180, 0, 183, 0, 15, 0, 4, 0, 9, 0, 4, 0, 185, 0, 191, 0, 185, 0, 171, 0, 179, 0, 171, 0, 159, 0, 165, 0, 159, 0, 147, 0, 153, 0, 147, 0, 135, 0, 141, 0, 135, 0, 123, 0, 129, 0, 123, 0, 111, 0, 117, 0, 111, 0, 99, 0, 105, 0, 99, 0, 87, 0, 93, 0, 87, 0, 75, 0, 81, 0, 75, 0, 63, 0, 69, 0, 63, 0, 51, 0, 57, 0, 51, 0, 39, 0, 45, 0, 39, 0, 27, 0, 33, 0, 27, 0, 15, 0, 21, 0, 15, 0, 185, 0, 4, 0, 185, 0, 159, 0, 171, 0, 159, 0, 135, 0, 147, 0, 135, 0, 111, 0, 123, 0, 111, 0, 87, 0, 99, 0, 87, 0, 63, 0, 75, 0, 63, 0, 39, 0, 51, 0, 39, 0, 15, 0, 27, 0, 15, 0, 159, 0, 185, 0, 159, 0, 111, 0, 135, 0, 111, 0, 63, 0, 87, 0, 63, 0, 15, 0, 39, 0, 15, 0, 111, 0, 159, 0, 111, 0, 15, 0, 63, 0, 181, 0, 189, 0, 184, 0, 181, 0, 186, 0, 189, 0, 187, 0, 3, 0, 190, 0, 187, 0, 0, 0, 3, 0, 188, 0, 6, 0, 1, 0, 6, 0, 18, 0, 12, 0, 18, 0, 32, 0, 26, 0, 32, 0, 44, 0, 38, 0, 44, 0, 56, 0, 50, 0, 56, 0, 68, 0, 62, 0, 68, 0, 80, 0, 74, 0, 80, 0, 92, 0, 86, 0, 92, 0, 104, 0, 98, 0, 104, 0, 116, 0, 110, 0, 116, 0, 128, 0, 122, 0, 128, 0, 140, 0, 134, 0, 140, 0, 152, 0, 146, 0, 152, 0, 164, 0, 158, 0, 164, 0, 176, 0, 170, 0, 176, 0, 188, 0, 182, 0, 188, 0, 18, 0, 6, 0, 18, 0, 44, 0, 32, 0, 44, 0, 68, 0, 56, 0, 68, 0, 92, 0, 80, 0, 92, 0, 116, 0, 104, 0, 116, 0, 140, 0, 128, 0, 140, 0, 164, 0, 152, 0, 164, 0, 188, 0, 176, 0, 188, 0, 44, 0, 18, 0, 44, 0, 92, 0, 68, 0, 92, 0, 140, 0, 116, 0, 140, 0, 188, 0, 164, 0, 188, 0, 92, 0, 44, 0, 92, 0, 188, 0, 140, 0),
|
35 |
+
"lods": [0.0100896, PackedByteArray(2, 0, 16, 0, 5, 0, 2, 0, 7, 0, 16, 0, 7, 0, 13, 0, 16, 0, 13, 0, 40, 0, 16, 0, 13, 0, 24, 0, 40, 0, 24, 0, 30, 0, 40, 0, 30, 0, 48, 0, 40, 0, 48, 0, 64, 0, 40, 0, 48, 0, 54, 0, 64, 0, 54, 0, 60, 0, 64, 0, 60, 0, 88, 0, 64, 0, 60, 0, 72, 0, 88, 0, 72, 0, 78, 0, 88, 0, 78, 0, 96, 0, 88, 0, 96, 0, 112, 0, 88, 0, 96, 0, 102, 0, 112, 0, 102, 0, 108, 0, 112, 0, 108, 0, 136, 0, 112, 0, 108, 0, 120, 0, 136, 0, 120, 0, 126, 0, 136, 0, 126, 0, 144, 0, 136, 0, 144, 0, 148, 0, 136, 0, 144, 0, 150, 0, 148, 0, 150, 0, 160, 0, 148, 0, 150, 0, 156, 0, 160, 0, 156, 0, 183, 0, 160, 0, 156, 0, 168, 0, 183, 0, 168, 0, 174, 0, 183, 0, 174, 0, 3, 0, 183, 0, 174, 0, 0, 0, 3, 0, 15, 0, 185, 0, 4, 0, 15, 0, 159, 0, 185, 0, 159, 0, 135, 0, 147, 0, 159, 0, 111, 0, 135, 0, 15, 0, 111, 0, 159, 0, 111, 0, 15, 0, 63, 0, 63, 0, 15, 0, 39, 0, 111, 0, 63, 0, 87, 0, 176, 0, 6, 0, 1, 0, 176, 0, 12, 0, 6, 0, 12, 0, 32, 0, 26, 0, 12, 0, 50, 0, 32, 0, 176, 0, 50, 0, 12, 0, 50, 0, 62, 0, 56, 0, 62, 0, 80, 0, 74, 0, 62, 0, 98, 0, 80, 0, 50, 0, 98, 0, 62, 0, 176, 0, 98, 0, 50, 0, 158, 0, 176, 0, 170, 0, 146, 0, 176, 0, 158, 0, 98, 0, 176, 0, 146, 0, 146, 0, 158, 0, 152, 0, 98, 0, 146, 0, 110, 0, 98, 0, 110, 0, 104, 0, 110, 0, 146, 0, 128, 0, 110, 0, 128, 0, 122, 0), 0.036844, PackedByteArray(2, 0, 16, 0, 5, 0, 2, 0, 7, 0, 16, 0, 7, 0, 24, 0, 16, 0, 24, 0, 48, 0, 64, 0, 48, 0, 60, 0, 64, 0, 60, 0, 212, 0, 64, 0, 212, 0, 108, 0, 112, 0, 108, 0, 120, 0, 112, 0, 120, 0, 144, 0, 217, 0, 215, 0, 217, 0, 214, 0, 213, 0, 214, 0, 211, 0, 210, 0, 211, 0, 209, 0, 144, 0, 216, 0, 160, 0, 216, 0, 183, 0, 160, 0, 156, 0, 3, 0, 183, 0, 216, 0, 0, 0, 3, 0, 15, 0, 185, 0, 4, 0, 15, 0, 159, 0, 185, 0, 15, 0, 111, 0, 159, 0, 111, 0, 15, 0, 63, 0, 158, 0, 6, 0, 1, 0, 158, 0, 26, 0, 6, 0, 26, 0, 62, 0, 50, 0, 26, 0, 98, 0, 62, 0, 158, 0, 98, 0, 26, 0, 98, 0, 158, 0, 122, 0, 122, 0, 158, 0, 146, 0, 98, 0, 122, 0, 110, 0), 0.0996534, PackedByteArray(2, 0, 16, 0, 5, 0, 193, 0, 197, 0, 195, 0, 197, 0, 201, 0, 200, 0, 201, 0, 205, 0, 204, 0, 198, 0, 199, 0, 196, 0, 202, 0, 203, 0, 199, 0, 206, 0, 208, 0, 203, 0, 15, 0, 159, 0, 4, 0, 15, 0, 111, 0, 159, 0, 111, 0, 15, 0, 63, 0, 144, 0, 3, 0, 160, 0, 207, 0, 192, 0, 194, 0, 146, 0, 50, 0, 1, 0, 146, 0, 98, 0, 50, 0)],
|
36 |
+
"material": SubResource("StandardMaterial3D_vqhyw"),
|
37 |
+
"name": "Material.002",
|
38 |
+
"primitive": 3,
|
39 |
+
"vertex_count": 218,
|
40 |
+
"vertex_data": PackedByteArray(0, 0, 0, 0, 205, 204, 204, 188, 205, 204, 76, 190, 0, 0, 133, 244, 121, 11, 255, 191, 0, 0, 0, 0, 205, 204, 204, 188, 205, 204, 76, 190, 255, 127, 0, 0, 255, 255, 255, 63, 0, 0, 0, 0, 205, 204, 204, 188, 205, 204, 76, 190, 255, 255, 133, 244, 0, 0, 187, 197, 0, 0, 0, 0, 205, 204, 204, 60, 205, 204, 76, 190, 0, 0, 133, 244, 121, 11, 255, 191, 0, 0, 0, 0, 205, 204, 204, 60, 205, 204, 76, 190, 255, 127, 255, 255, 255, 255, 255, 191, 0, 0, 0, 0, 205, 204, 204, 60, 205, 204, 76, 190, 255, 255, 133, 244, 0, 0, 187, 197, 104, 209, 31, 61, 205, 204, 204, 188, 101, 221, 72, 190, 255, 127, 0, 0, 255, 255, 255, 63, 104, 209, 31, 61, 205, 204, 204, 188, 101, 221, 72, 190, 255, 255, 133, 244, 0, 0, 187, 197, 104, 209, 31, 61, 205, 204, 204, 188, 101, 221, 72, 190, 255, 255, 51, 226, 0, 0, 228, 206, 104, 209, 31, 61, 205, 204, 204, 60, 101, 221, 72, 190, 255, 127, 255, 255, 255, 255, 255, 191, 104, 209, 31, 61, 205, 204, 204, 60, 101, 221, 72, 190, 255, 255, 133, 244, 0, 0, 187, 197, 104, 209, 31, 61, 205, 204, 204, 60, 101, 221, 72, 190, 255, 255, 51, 226, 0, 0, 228, 206, 69, 191, 156, 61, 205, 204, 204, 188, 229, 53, 61, 190, 255, 127, 0, 0, 255, 255, 255, 63, 69, 191, 156, 61, 205, 204, 204, 188, 229, 53, 61, 190, 255, 255, 51, 226, 0, 0, 228, 206, 69, 191, 156, 61, 205, 204, 204, 188, 229, 53, 61, 190, 255, 255, 104, 211, 0, 0, 74, 214, 69, 191, 156, 61, 205, 204, 204, 60, 229, 53, 61, 190, 255, 127, 255, 255, 254, 255, 255, 191, 69, 191, 156, 61, 205, 204, 204, 60, 229, 53, 61, 190, 255, 255, 51, 226, 0, 0, 228, 206, 69, 191, 156, 61, 205, 204, 204, 60, 229, 53, 61, 190, 255, 255, 104, 211, 0, 0, 74, 214, 195, 143, 227, 61, 205, 204, 204, 188, 244, 72, 42, 190, 255, 127, 0, 0, 255, 255, 255, 63, 195, 143, 227, 61, 205, 204, 204, 188, 244, 72, 42, 190, 255, 255, 104, 211, 0, 0, 74, 214, 195, 143, 227, 61, 205, 204, 204, 188, 244, 72, 42, 190, 255, 255, 76, 198, 0, 0, 216, 220, 195, 143, 227, 61, 205, 204, 204, 60, 244, 72, 42, 190, 255, 127, 255, 255, 254, 255, 255, 191, 195, 143, 227, 61, 205, 204, 204, 60, 244, 72, 42, 190, 255, 255, 104, 211, 0, 0, 74, 214, 195, 143, 227, 61, 205, 204, 204, 60, 244, 72, 42, 190, 255, 255, 76, 198, 0, 0, 216, 220, 195, 208, 16, 62, 205, 204, 204, 188, 195, 208, 16, 190, 255, 255, 76, 198, 0, 0, 216, 220, 195, 208, 16, 62, 205, 204, 204, 188, 195, 208, 16, 190, 255, 255, 177, 185, 0, 0, 37, 227, 195, 208, 16, 62, 205, 204, 204, 188, 195, 208, 16, 190, 255, 127, 0, 0, 255, 255, 255, 63, 195, 208, 16, 62, 205, 204, 204, 60, 195, 208, 16, 190, 255, 127, 255, 255, 254, 255, 255, 191, 195, 208, 16, 62, 205, 204, 204, 60, 195, 208, 16, 190, 255, 255, 76, 198, 0, 0, 216, 220, 195, 208, 16, 62, 205, 204, 204, 60, 195, 208, 16, 190, 255, 255, 177, 185, 0, 0, 37, 227, 244, 72, 42, 62, 205, 204, 204, 188, 195, 143, 227, 189, 255, 255, 177, 185, 0, 0, 37, 227, 244, 72, 42, 62, 205, 204, 204, 188, 195, 143, 227, 189, 255, 255, 149, 172, 0, 0, 179, 233, 244, 72, 42, 62, 205, 204, 204, 188, 195, 143, 227, 189, 255, 127, 0, 0, 255, 255, 255, 63, 244, 72, 42, 62, 205, 204, 204, 60, 195, 143, 227, 189, 255, 127, 255, 255, 255, 255, 255, 191, 244, 72, 42, 62, 205, 204, 204, 60, 195, 143, 227, 189, 255, 255, 177, 185, 0, 0, 37, 227, 244, 72, 42, 62, 205, 204, 204, 60, 195, 143, 227, 189, 255, 255, 149, 172, 0, 0, 179, 233, 229, 53, 61, 62, 205, 204, 204, 188, 69, 191, 156, 189, 255, 255, 149, 172, 0, 0, 179, 233, 229, 53, 61, 62, 205, 204, 204, 188, 69, 191, 156, 189, 255, 255, 202, 157, 0, 0, 25, 241, 229, 53, 61, 62, 205, 204, 204, 188, 69, 191, 156, 189, 255, 127, 0, 0, 255, 255, 255, 63, 229, 53, 61, 62, 205, 204, 204, 60, 69, 191, 156, 189, 255, 127, 255, 255, 254, 255, 255, 191, 229, 53, 61, 62, 205, 204, 204, 60, 69, 191, 156, 189, 255, 255, 149, 172, 0, 0, 179, 233, 229, 53, 61, 62, 205, 204, 204, 60, 69, 191, 156, 189, 255, 255, 202, 157, 0, 0, 25, 241, 101, 221, 72, 62, 205, 204, 204, 188, 104, 209, 31, 189, 255, 255, 202, 157, 0, 0, 25, 241, 101, 221, 72, 62, 205, 204, 204, 188, 104, 209, 31, 189, 255, 255, 120, 139, 0, 0, 66, 250, 101, 221, 72, 62, 205, 204, 204, 188, 104, 209, 31, 189, 255, 127, 0, 0, 255, 255, 255, 63, 101, 221, 72, 62, 205, 204, 204, 60, 104, 209, 31, 189, 255, 127, 255, 255, 254, 255, 255, 191, 101, 221, 72, 62, 205, 204, 204, 60, 104, 209, 31, 189, 255, 255, 202, 157, 0, 0, 25, 241, 101, 221, 72, 62, 205, 204, 204, 60, 104, 209, 31, 189, 255, 255, 120, 139, 0, 0, 66, 250, 205, 204, 76, 62, 205, 204, 204, 188, 0, 0, 0, 128, 255, 255, 120, 139, 0, 0, 66, 250, 205, 204, 76, 62, 205, 204, 204, 188, 0, 0, 0, 128, 133, 244, 255, 127, 255, 255, 66, 250, 205, 204, 76, 62, 205, 204, 204, 188, 0, 0, 0, 128, 255, 127, 0, 0, 255, 255, 255, 63, 205, 204, 76, 62, 205, 204, 204, 60, 0, 0, 0, 128, 255, 127, 255, 255, 255, 255, 255, 191, 205, 204, 76, 62, 205, 204, 204, 60, 0, 0, 0, 128, 255, 255, 120, 139, 0, 0, 66, 250, 205, 204, 76, 62, 205, 204, 204, 60, 0, 0, 0, 128, 133, 244, 255, 127, 255, 255, 66, 250, 101, 221, 72, 62, 205, 204, 204, 188, 104, 209, 31, 61, 51, 226, 255, 127, 255, 255, 25, 241, 101, 221, 72, 62, 205, 204, 204, 188, 104, 209, 31, 61, 133, 244, 255, 127, 255, 255, 66, 250, 101, 221, 72, 62, 205, 204, 204, 188, 104, 209, 31, 61, 255, 127, 0, 0, 255, 255, 255, 63, 101, 221, 72, 62, 205, 204, 204, 60, 104, 209, 31, 61, 255, 127, 255, 255, 255, 255, 255, 191, 101, 221, 72, 62, 205, 204, 204, 60, 104, 209, 31, 61, 51, 226, 255, 127, 255, 255, 25, 241, 101, 221, 72, 62, 205, 204, 204, 60, 104, 209, 31, 61, 133, 244, 255, 127, 255, 255, 66, 250, 229, 53, 61, 62, 205, 204, 204, 188, 69, 191, 156, 61, 104, 211, 255, 127, 255, 255, 179, 233, 229, 53, 61, 62, 205, 204, 204, 188, 69, 191, 156, 61, 51, 226, 255, 127, 255, 255, 25, 241, 229, 53, 61, 62, 205, 204, 204, 188, 69, 191, 156, 61, 255, 127, 0, 0, 254, 255, 255, 63, 229, 53, 61, 62, 205, 204, 204, 60, 69, 191, 156, 61, 255, 127, 255, 255, 255, 255, 255, 191, 229, 53, 61, 62, 205, 204, 204, 60, 69, 191, 156, 61, 104, 211, 255, 127, 255, 255, 179, 233, 229, 53, 61, 62, 205, 204, 204, 60, 69, 191, 156, 61, 51, 226, 255, 127, 255, 255, 25, 241, 244, 72, 42, 62, 205, 204, 204, 188, 195, 143, 227, 61, 76, 198, 255, 127, 255, 255, 37, 227, 244, 72, 42, 62, 205, 204, 204, 188, 195, 143, 227, 61, 104, 211, 255, 127, 255, 255, 179, 233, 244, 72, 42, 62, 205, 204, 204, 188, 195, 143, 227, 61, 255, 127, 0, 0, 255, 255, 255, 63, 244, 72, 42, 62, 205, 204, 204, 60, 195, 143, 227, 61, 255, 127, 255, 255, 254, 255, 255, 191, 244, 72, 42, 62, 205, 204, 204, 60, 195, 143, 227, 61, 76, 198, 255, 127, 255, 255, 37, 227, 244, 72, 42, 62, 205, 204, 204, 60, 195, 143, 227, 61, 104, 211, 255, 127, 255, 255, 179, 233, 195, 208, 16, 62, 205, 204, 204, 188, 195, 208, 16, 62, 177, 185, 255, 127, 255, 255, 216, 220, 195, 208, 16, 62, 205, 204, 204, 188, 195, 208, 16, 62, 76, 198, 255, 127, 255, 255, 37, 227, 195, 208, 16, 62, 205, 204, 204, 188, 195, 208, 16, 62, 255, 127, 0, 0, 254, 255, 255, 63, 195, 208, 16, 62, 205, 204, 204, 60, 195, 208, 16, 62, 255, 127, 255, 255, 255, 255, 255, 191, 195, 208, 16, 62, 205, 204, 204, 60, 195, 208, 16, 62, 177, 185, 255, 127, 255, 255, 216, 220, 195, 208, 16, 62, 205, 204, 204, 60, 195, 208, 16, 62, 76, 198, 255, 127, 255, 255, 37, 227, 195, 143, 227, 61, 205, 204, 204, 188, 244, 72, 42, 62, 149, 172, 255, 127, 255, 255, 74, 214, 195, 143, 227, 61, 205, 204, 204, 188, 244, 72, 42, 62, 177, 185, 255, 127, 255, 255, 216, 220, 195, 143, 227, 61, 205, 204, 204, 188, 244, 72, 42, 62, 255, 127, 0, 0, 255, 255, 255, 63, 195, 143, 227, 61, 205, 204, 204, 60, 244, 72, 42, 62, 255, 127, 255, 255, 255, 255, 255, 191, 195, 143, 227, 61, 205, 204, 204, 60, 244, 72, 42, 62, 149, 172, 255, 127, 255, 255, 74, 214, 195, 143, 227, 61, 205, 204, 204, 60, 244, 72, 42, 62, 177, 185, 255, 127, 255, 255, 216, 220, 69, 191, 156, 61, 205, 204, 204, 188, 229, 53, 61, 62, 202, 157, 255, 127, 255, 255, 228, 206, 69, 191, 156, 61, 205, 204, 204, 188, 229, 53, 61, 62, 149, 172, 255, 127, 255, 255, 74, 214, 69, 191, 156, 61, 205, 204, 204, 188, 229, 53, 61, 62, 255, 127, 0, 0, 254, 255, 255, 63, 69, 191, 156, 61, 205, 204, 204, 60, 229, 53, 61, 62, 255, 127, 255, 255, 255, 255, 255, 191, 69, 191, 156, 61, 205, 204, 204, 60, 229, 53, 61, 62, 202, 157, 255, 127, 255, 255, 228, 206, 69, 191, 156, 61, 205, 204, 204, 60, 229, 53, 61, 62, 149, 172, 255, 127, 255, 255, 74, 214, 104, 209, 31, 61, 205, 204, 204, 188, 101, 221, 72, 62, 120, 139, 255, 127, 255, 255, 187, 197, 104, 209, 31, 61, 205, 204, 204, 188, 101, 221, 72, 62, 202, 157, 255, 127, 255, 255, 228, 206, 104, 209, 31, 61, 205, 204, 204, 188, 101, 221, 72, 62, 255, 127, 0, 0, 254, 255, 255, 63, 104, 209, 31, 61, 205, 204, 204, 60, 101, 221, 72, 62, 255, 127, 255, 255, 254, 255, 255, 191, 104, 209, 31, 61, 205, 204, 204, 60, 101, 221, 72, 62, 120, 139, 255, 127, 255, 255, 187, 197, 104, 209, 31, 61, 205, 204, 204, 60, 101, 221, 72, 62, 202, 157, 255, 127, 255, 255, 228, 206, 0, 0, 0, 0, 205, 204, 204, 188, 205, 204, 76, 62, 134, 116, 255, 127, 133, 244, 255, 191, 0, 0, 0, 0, 205, 204, 204, 188, 205, 204, 76, 62, 120, 139, 255, 127, 255, 255, 187, 197, 0, 0, 0, 0, 205, 204, 204, 188, 205, 204, 76, 62, 255, 127, 0, 0, 255, 255, 255, 63, 0, 0, 0, 0, 205, 204, 204, 60, 205, 204, 76, 62, 255, 127, 255, 255, 255, 255, 255, 191, 0, 0, 0, 0, 205, 204, 204, 60, 205, 204, 76, 62, 134, 116, 255, 127, 133, 244, 255, 191, 0, 0, 0, 0, 205, 204, 204, 60, 205, 204, 76, 62, 120, 139, 255, 127, 255, 255, 187, 197, 104, 209, 31, 189, 205, 204, 204, 188, 101, 221, 72, 62, 52, 98, 255, 127, 51, 226, 255, 191, 104, 209, 31, 189, 205, 204, 204, 188, 101, 221, 72, 62, 134, 116, 255, 127, 133, 244, 255, 191, 104, 209, 31, 189, 205, 204, 204, 188, 101, 221, 72, 62, 255, 127, 0, 0, 255, 255, 255, 63, 104, 209, 31, 189, 205, 204, 204, 60, 101, 221, 72, 62, 255, 127, 255, 255, 255, 255, 255, 191, 104, 209, 31, 189, 205, 204, 204, 60, 101, 221, 72, 62, 52, 98, 255, 127, 51, 226, 255, 191, 104, 209, 31, 189, 205, 204, 204, 60, 101, 221, 72, 62, 134, 116, 255, 127, 133, 244, 255, 191, 69, 191, 156, 189, 205, 204, 204, 188, 229, 53, 61, 62, 105, 83, 255, 127, 104, 211, 255, 191, 69, 191, 156, 189, 205, 204, 204, 188, 229, 53, 61, 62, 52, 98, 255, 127, 51, 226, 255, 191, 69, 191, 156, 189, 205, 204, 204, 188, 229, 53, 61, 62, 255, 127, 0, 0, 255, 255, 255, 63, 69, 191, 156, 189, 205, 204, 204, 60, 229, 53, 61, 62, 255, 127, 255, 255, 254, 255, 255, 191, 69, 191, 156, 189, 205, 204, 204, 60, 229, 53, 61, 62, 105, 83, 255, 127, 104, 211, 255, 191, 69, 191, 156, 189, 205, 204, 204, 60, 229, 53, 61, 62, 52, 98, 255, 127, 51, 226, 255, 191, 195, 143, 227, 189, 205, 204, 204, 188, 244, 72, 42, 62, 77, 70, 255, 127, 76, 198, 255, 191, 195, 143, 227, 189, 205, 204, 204, 188, 244, 72, 42, 62, 105, 83, 255, 127, 104, 211, 255, 191, 195, 143, 227, 189, 205, 204, 204, 188, 244, 72, 42, 62, 255, 127, 0, 0, 255, 255, 255, 63, 195, 143, 227, 189, 205, 204, 204, 60, 244, 72, 42, 62, 255, 127, 255, 255, 254, 255, 255, 191, 195, 143, 227, 189, 205, 204, 204, 60, 244, 72, 42, 62, 77, 70, 255, 127, 76, 198, 255, 191, 195, 143, 227, 189, 205, 204, 204, 60, 244, 72, 42, 62, 105, 83, 255, 127, 104, 211, 255, 191, 195, 208, 16, 190, 205, 204, 204, 188, 195, 208, 16, 62, 178, 57, 255, 127, 177, 185, 255, 191, 195, 208, 16, 190, 205, 204, 204, 188, 195, 208, 16, 62, 77, 70, 255, 127, 76, 198, 255, 191, 195, 208, 16, 190, 205, 204, 204, 188, 195, 208, 16, 62, 255, 127, 0, 0, 255, 255, 255, 63, 195, 208, 16, 190, 205, 204, 204, 60, 195, 208, 16, 62, 255, 127, 255, 255, 254, 255, 255, 191, 195, 208, 16, 190, 205, 204, 204, 60, 195, 208, 16, 62, 178, 57, 255, 127, 177, 185, 255, 191, 195, 208, 16, 190, 205, 204, 204, 60, 195, 208, 16, 62, 77, 70, 255, 127, 76, 198, 255, 191, 244, 72, 42, 190, 205, 204, 204, 188, 195, 143, 227, 61, 150, 44, 255, 127, 149, 172, 255, 191, 244, 72, 42, 190, 205, 204, 204, 188, 195, 143, 227, 61, 178, 57, 255, 127, 177, 185, 255, 191, 244, 72, 42, 190, 205, 204, 204, 188, 195, 143, 227, 61, 255, 127, 0, 0, 255, 255, 255, 63, 244, 72, 42, 190, 205, 204, 204, 60, 195, 143, 227, 61, 255, 127, 255, 255, 255, 255, 255, 191, 244, 72, 42, 190, 205, 204, 204, 60, 195, 143, 227, 61, 150, 44, 255, 127, 149, 172, 255, 191, 244, 72, 42, 190, 205, 204, 204, 60, 195, 143, 227, 61, 178, 57, 255, 127, 177, 185, 255, 191, 229, 53, 61, 190, 205, 204, 204, 188, 69, 191, 156, 61, 203, 29, 255, 127, 202, 157, 255, 191, 229, 53, 61, 190, 205, 204, 204, 188, 69, 191, 156, 61, 150, 44, 255, 127, 149, 172, 255, 191, 229, 53, 61, 190, 205, 204, 204, 188, 69, 191, 156, 61, 255, 127, 0, 0, 255, 255, 255, 63, 229, 53, 61, 190, 205, 204, 204, 60, 69, 191, 156, 61, 255, 127, 255, 255, 254, 255, 255, 191, 229, 53, 61, 190, 205, 204, 204, 60, 69, 191, 156, 61, 203, 29, 255, 127, 202, 157, 255, 191, 229, 53, 61, 190, 205, 204, 204, 60, 69, 191, 156, 61, 150, 44, 255, 127, 149, 172, 255, 191, 101, 221, 72, 190, 205, 204, 204, 188, 104, 209, 31, 61, 121, 11, 255, 127, 120, 139, 255, 191, 101, 221, 72, 190, 205, 204, 204, 188, 104, 209, 31, 61, 203, 29, 255, 127, 202, 157, 255, 191, 101, 221, 72, 190, 205, 204, 204, 188, 104, 209, 31, 61, 255, 127, 0, 0, 255, 255, 255, 63, 101, 221, 72, 190, 205, 204, 204, 60, 104, 209, 31, 61, 255, 127, 255, 255, 254, 255, 255, 191, 101, 221, 72, 190, 205, 204, 204, 60, 104, 209, 31, 61, 121, 11, 255, 127, 120, 139, 255, 191, 101, 221, 72, 190, 205, 204, 204, 60, 104, 209, 31, 61, 203, 29, 255, 127, 202, 157, 255, 191, 205, 204, 76, 190, 205, 204, 204, 188, 0, 0, 0, 128, 0, 0, 120, 139, 134, 116, 255, 191, 205, 204, 76, 190, 205, 204, 204, 188, 0, 0, 0, 128, 121, 11, 255, 127, 120, 139, 255, 191, 205, 204, 76, 190, 205, 204, 204, 188, 0, 0, 0, 128, 255, 127, 0, 0, 255, 255, 255, 63, 205, 204, 76, 190, 205, 204, 204, 60, 0, 0, 0, 128, 255, 127, 255, 255, 255, 255, 255, 191, 205, 204, 76, 190, 205, 204, 204, 60, 0, 0, 0, 128, 0, 0, 120, 139, 134, 116, 255, 191, 205, 204, 76, 190, 205, 204, 204, 60, 0, 0, 0, 128, 121, 11, 255, 127, 120, 139, 255, 191, 101, 221, 72, 190, 205, 204, 204, 188, 104, 209, 31, 189, 0, 0, 120, 139, 134, 116, 255, 191, 101, 221, 72, 190, 205, 204, 204, 188, 104, 209, 31, 189, 0, 0, 202, 157, 52, 98, 255, 191, 101, 221, 72, 190, 205, 204, 204, 188, 104, 209, 31, 189, 255, 127, 0, 0, 255, 255, 255, 63, 101, 221, 72, 190, 205, 204, 204, 60, 104, 209, 31, 189, 255, 127, 255, 255, 255, 255, 255, 191, 101, 221, 72, 190, 205, 204, 204, 60, 104, 209, 31, 189, 0, 0, 120, 139, 134, 116, 255, 191, 101, 221, 72, 190, 205, 204, 204, 60, 104, 209, 31, 189, 0, 0, 202, 157, 52, 98, 255, 191, 229, 53, 61, 190, 205, 204, 204, 188, 69, 191, 156, 189, 0, 0, 202, 157, 52, 98, 255, 191, 229, 53, 61, 190, 205, 204, 204, 188, 69, 191, 156, 189, 0, 0, 149, 172, 105, 83, 255, 191, 229, 53, 61, 190, 205, 204, 204, 188, 69, 191, 156, 189, 255, 127, 0, 0, 254, 255, 255, 63, 229, 53, 61, 190, 205, 204, 204, 60, 69, 191, 156, 189, 255, 127, 255, 255, 255, 255, 255, 191, 229, 53, 61, 190, 205, 204, 204, 60, 69, 191, 156, 189, 0, 0, 202, 157, 52, 98, 255, 191, 229, 53, 61, 190, 205, 204, 204, 60, 69, 191, 156, 189, 0, 0, 149, 172, 105, 83, 255, 191, 244, 72, 42, 190, 205, 204, 204, 188, 195, 143, 227, 189, 0, 0, 149, 172, 105, 83, 255, 191, 244, 72, 42, 190, 205, 204, 204, 188, 195, 143, 227, 189, 0, 0, 177, 185, 77, 70, 255, 191, 244, 72, 42, 190, 205, 204, 204, 188, 195, 143, 227, 189, 255, 127, 0, 0, 255, 255, 255, 63, 244, 72, 42, 190, 205, 204, 204, 60, 195, 143, 227, 189, 255, 127, 255, 255, 254, 255, 255, 191, 244, 72, 42, 190, 205, 204, 204, 60, 195, 143, 227, 189, 0, 0, 149, 172, 105, 83, 255, 191, 244, 72, 42, 190, 205, 204, 204, 60, 195, 143, 227, 189, 0, 0, 177, 185, 77, 70, 255, 191, 195, 208, 16, 190, 205, 204, 204, 188, 195, 208, 16, 190, 0, 0, 177, 185, 77, 70, 255, 191, 195, 208, 16, 190, 205, 204, 204, 188, 195, 208, 16, 190, 0, 0, 76, 198, 178, 57, 255, 191, 195, 208, 16, 190, 205, 204, 204, 188, 195, 208, 16, 190, 255, 127, 0, 0, 254, 255, 255, 63, 195, 208, 16, 190, 205, 204, 204, 60, 195, 208, 16, 190, 255, 127, 255, 255, 255, 255, 255, 191, 195, 208, 16, 190, 205, 204, 204, 60, 195, 208, 16, 190, 0, 0, 177, 185, 77, 70, 255, 191, 195, 208, 16, 190, 205, 204, 204, 60, 195, 208, 16, 190, 0, 0, 76, 198, 178, 57, 255, 191, 195, 143, 227, 189, 205, 204, 204, 188, 244, 72, 42, 190, 0, 0, 76, 198, 178, 57, 255, 191, 195, 143, 227, 189, 205, 204, 204, 188, 244, 72, 42, 190, 0, 0, 104, 211, 150, 44, 255, 191, 195, 143, 227, 189, 205, 204, 204, 188, 244, 72, 42, 190, 255, 127, 0, 0, 255, 255, 255, 63, 195, 143, 227, 189, 205, 204, 204, 60, 244, 72, 42, 190, 0, 0, 76, 198, 178, 57, 255, 191, 195, 143, 227, 189, 205, 204, 204, 60, 244, 72, 42, 190, 0, 0, 104, 211, 150, 44, 255, 191, 195, 143, 227, 189, 205, 204, 204, 60, 244, 72, 42, 190, 255, 127, 255, 255, 255, 255, 255, 191, 69, 191, 156, 189, 205, 204, 204, 188, 229, 53, 61, 190, 0, 0, 104, 211, 150, 44, 255, 191, 69, 191, 156, 189, 205, 204, 204, 188, 229, 53, 61, 190, 0, 0, 51, 226, 203, 29, 255, 191, 69, 191, 156, 189, 205, 204, 204, 188, 229, 53, 61, 190, 255, 127, 0, 0, 254, 255, 255, 63, 69, 191, 156, 189, 205, 204, 204, 60, 229, 53, 61, 190, 0, 0, 104, 211, 150, 44, 255, 191, 69, 191, 156, 189, 205, 204, 204, 60, 229, 53, 61, 190, 0, 0, 51, 226, 203, 29, 255, 191, 69, 191, 156, 189, 205, 204, 204, 60, 229, 53, 61, 190, 255, 127, 255, 255, 255, 255, 255, 191, 104, 209, 31, 189, 205, 204, 204, 188, 101, 221, 72, 190, 0, 0, 51, 226, 203, 29, 255, 191, 104, 209, 31, 189, 205, 204, 204, 188, 101, 221, 72, 190, 0, 0, 133, 244, 121, 11, 255, 191, 104, 209, 31, 189, 205, 204, 204, 188, 101, 221, 72, 190, 255, 127, 0, 0, 254, 255, 255, 63, 104, 209, 31, 189, 205, 204, 204, 60, 101, 221, 72, 190, 0, 0, 51, 226, 203, 29, 255, 191, 104, 209, 31, 189, 205, 204, 204, 60, 101, 221, 72, 190, 0, 0, 133, 244, 121, 11, 255, 191, 104, 209, 31, 189, 205, 204, 204, 60, 101, 221, 72, 190, 255, 127, 255, 255, 254, 255, 255, 191, 0, 0, 0, 0, 205, 204, 204, 188, 205, 204, 76, 190, 0, 0, 90, 213, 121, 11, 255, 191, 0, 0, 0, 0, 205, 204, 204, 188, 205, 204, 76, 190, 255, 127, 0, 0, 0, 0, 187, 197, 0, 0, 0, 0, 205, 204, 204, 60, 205, 204, 76, 190, 0, 0, 92, 206, 121, 11, 255, 191, 69, 191, 156, 61, 205, 204, 204, 60, 229, 53, 61, 190, 255, 127, 0, 0, 0, 0, 228, 206, 69, 191, 156, 61, 205, 204, 204, 60, 229, 53, 61, 190, 255, 127, 255, 255, 0, 0, 228, 206, 205, 204, 76, 62, 205, 204, 204, 188, 0, 0, 0, 128, 255, 127, 0, 0, 0, 0, 66, 250, 205, 204, 76, 62, 205, 204, 204, 188, 0, 0, 0, 128, 255, 127, 255, 255, 0, 0, 66, 250, 229, 53, 61, 62, 205, 204, 204, 60, 69, 191, 156, 61, 255, 127, 255, 255, 255, 255, 179, 233, 229, 53, 61, 62, 205, 204, 204, 60, 69, 191, 156, 61, 255, 127, 0, 0, 255, 255, 179, 233, 0, 0, 0, 0, 205, 204, 204, 188, 205, 204, 76, 62, 255, 127, 0, 0, 133, 244, 255, 191, 0, 0, 0, 0, 205, 204, 204, 188, 205, 204, 76, 62, 255, 127, 255, 255, 133, 244, 255, 191, 69, 191, 156, 189, 205, 204, 204, 60, 229, 53, 61, 62, 105, 127, 139, 255, 104, 211, 255, 191, 69, 191, 156, 189, 205, 204, 204, 60, 229, 53, 61, 62, 255, 127, 0, 0, 104, 211, 255, 191, 205, 204, 76, 190, 205, 204, 204, 188, 0, 0, 0, 128, 255, 127, 0, 0, 134, 116, 255, 191, 205, 204, 76, 190, 205, 204, 204, 188, 0, 0, 0, 128, 3, 112, 187, 243, 134, 116, 255, 191, 205, 204, 76, 190, 205, 204, 204, 188, 0, 0, 0, 128, 0, 0, 139, 190, 134, 116, 255, 191, 229, 53, 61, 190, 205, 204, 204, 60, 69, 191, 156, 189, 28, 103, 230, 236, 52, 98, 255, 191, 69, 191, 156, 61, 205, 204, 204, 60, 229, 53, 61, 190, 255, 127, 255, 255, 0, 0, 228, 206, 195, 208, 16, 62, 205, 204, 204, 188, 195, 208, 16, 190, 255, 127, 255, 255, 0, 0, 216, 220, 229, 53, 61, 62, 205, 204, 204, 60, 69, 191, 156, 61, 255, 127, 255, 255, 255, 255, 179, 233, 0, 0, 0, 0, 205, 204, 204, 188, 205, 204, 76, 62, 237, 151, 255, 127, 133, 244, 255, 191, 0, 0, 0, 0, 205, 204, 204, 188, 205, 204, 76, 62, 255, 127, 255, 255, 133, 244, 255, 191, 69, 191, 156, 189, 205, 204, 204, 60, 229, 53, 61, 62, 255, 127, 255, 255, 104, 211, 255, 191, 195, 208, 16, 190, 205, 204, 204, 188, 195, 208, 16, 62, 255, 127, 255, 255, 177, 185, 255, 191, 229, 53, 61, 190, 205, 204, 204, 188, 69, 191, 156, 189, 0, 0, 143, 184, 52, 98, 255, 191, 229, 53, 61, 190, 205, 204, 204, 60, 69, 191, 156, 189, 255, 127, 255, 255, 52, 98, 255, 191)
|
41 |
+
}]
|
42 |
+
blend_shape_mode = 0
|
43 |
+
shadow_mesh = SubResource("ArrayMesh_k1b3a")
|
44 |
+
|
45 |
+
[sub_resource type="CylinderShape3D" id="CylinderShape3D_22620"]
|
46 |
+
margin = 0.08
|
47 |
+
height = 0.329963
|
48 |
+
radius = 0.250175
|
49 |
+
|
50 |
+
[node name="Puck" type="RigidBody3D"]
|
51 |
+
collision_layer = 2
|
52 |
+
input_ray_pickable = false
|
53 |
+
axis_lock_linear_y = true
|
54 |
+
axis_lock_angular_x = true
|
55 |
+
axis_lock_angular_y = true
|
56 |
+
axis_lock_angular_z = true
|
57 |
+
mass = 3.0
|
58 |
+
physics_material_override = SubResource("PhysicsMaterial_rjp52")
|
59 |
+
gravity_scale = 0.0
|
60 |
+
continuous_cd = true
|
61 |
+
max_contacts_reported = 3
|
62 |
+
contact_monitor = true
|
63 |
+
lock_rotation = true
|
64 |
+
|
65 |
+
[node name="puck" type="MeshInstance3D" parent="."]
|
66 |
+
mesh = SubResource("ArrayMesh_ymv1m")
|
67 |
+
skeleton = NodePath("")
|
68 |
+
|
69 |
+
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
70 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.140387, 0)
|
71 |
+
shape = SubResource("CylinderShape3D_22620")
|
scenes/GameScene/pusher.gd
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
extends RigidBody3D
|
2 |
+
class_name Pusher
|
3 |
+
|
4 |
+
@export var acceleration := 1000
|
5 |
+
var requested_movement: Vector3
|
6 |
+
|
7 |
+
@onready var _AIController3D: AIController3D = $AIController3D
|
8 |
+
@export var puck: Puck
|
9 |
+
@export var goal: Area3D
|
10 |
+
@export var other_player: Pusher
|
11 |
+
|
12 |
+
var _initial_position: Vector3
|
13 |
+
|
14 |
+
func _ready():
|
15 |
+
_AIController3D.init(self)
|
16 |
+
_initial_position = position
|
17 |
+
|
18 |
+
func reset():
|
19 |
+
position = _initial_position
|
20 |
+
|
21 |
+
func _physics_process(_delta):
|
22 |
+
if _AIController3D.needs_reset:
|
23 |
+
_AIController3D.reset()
|
24 |
+
reset()
|
25 |
+
|
26 |
+
var movement: Vector3
|
27 |
+
|
28 |
+
if _AIController3D.heuristic != "human":
|
29 |
+
movement = requested_movement
|
30 |
+
else:
|
31 |
+
if Input.is_action_pressed("forward"):
|
32 |
+
movement.z -= 1
|
33 |
+
if Input.is_action_pressed("backward"):
|
34 |
+
movement.z += 1
|
35 |
+
|
36 |
+
if Input.is_action_pressed("left"):
|
37 |
+
movement.x -= 1
|
38 |
+
if Input.is_action_pressed("right"):
|
39 |
+
movement.x += 1
|
40 |
+
|
41 |
+
if movement:
|
42 |
+
apply_central_force(
|
43 |
+
global_transform.basis *
|
44 |
+
movement.limit_length(1) *
|
45 |
+
acceleration
|
46 |
+
)
|
47 |
+
|
48 |
+
# Small penalty for standing still
|
49 |
+
if linear_velocity.length() < 0.1:
|
50 |
+
_AIController3D.reward -= 0.00075
|
51 |
+
|
52 |
+
|
53 |
+
func _on_body_entered(body: PhysicsBody3D):
|
54 |
+
if body == puck:
|
55 |
+
# Reward for hitting the puck based on velocity
|
56 |
+
_AIController3D.reward += 0.085 * linear_velocity.length()
|
57 |
+
|
58 |
+
|
59 |
+
func _on_goal_body_entered(_body):
|
60 |
+
_AIController3D.reward += 10
|
61 |
+
_AIController3D.done = true
|
62 |
+
_AIController3D.needs_reset = true
|
63 |
+
|
64 |
+
other_player._AIController3D.reward -= 1
|
65 |
+
other_player._AIController3D.done = true
|
66 |
+
other_player._AIController3D.needs_reset = true
|
scenes/GameScene/pusher.tscn
ADDED
The diff for this file is too large to render.
See raw diff
|
|
scenes/TrainingScene/training_scene.tscn
ADDED
@@ -0,0 +1,115 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[gd_scene load_steps=6 format=3 uid="uid://b5sssiagwbsw2"]
|
2 |
+
|
3 |
+
[ext_resource type="Script" path="res://addons/godot_rl_agents/sync.gd" id="1_1321i"]
|
4 |
+
[ext_resource type="PackedScene" uid="uid://bsicj1i5eb7rm" path="res://scenes/GameScene/game_scene.tscn" id="2_uqciq"]
|
5 |
+
|
6 |
+
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_ywvgy"]
|
7 |
+
|
8 |
+
[sub_resource type="Sky" id="Sky_vix84"]
|
9 |
+
sky_material = SubResource("ProceduralSkyMaterial_ywvgy")
|
10 |
+
|
11 |
+
[sub_resource type="Environment" id="Environment_exi2s"]
|
12 |
+
background_mode = 2
|
13 |
+
sky = SubResource("Sky_vix84")
|
14 |
+
ssr_enabled = true
|
15 |
+
sdfgi_enabled = true
|
16 |
+
glow_enabled = true
|
17 |
+
glow_strength = 0.85
|
18 |
+
glow_bloom = 0.03
|
19 |
+
|
20 |
+
[node name="TrainingScene" type="Node3D"]
|
21 |
+
|
22 |
+
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
23 |
+
transform = Transform3D(-4.37114e-08, -0.906308, 0.422618, 0, 0.422618, 0.906308, -1, 3.9616e-08, -1.84732e-08, 0, 0.49795, 0)
|
24 |
+
light_energy = 1.2
|
25 |
+
light_indirect_energy = 1.3
|
26 |
+
shadow_enabled = true
|
27 |
+
|
28 |
+
[node name="Camera3D" type="Camera3D" parent="."]
|
29 |
+
transform = Transform3D(0.587785, 0.572062, -0.572061, 0, 0.707107, 0.707107, 0.809017, -0.415627, 0.415627, -3.919, 3.645, 3.178)
|
30 |
+
environment = SubResource("Environment_exi2s")
|
31 |
+
fov = 69.1
|
32 |
+
|
33 |
+
[node name="Sync" type="Node" parent="."]
|
34 |
+
script = ExtResource("1_1321i")
|
35 |
+
action_repeat = 6
|
36 |
+
|
37 |
+
[node name="GameScene" parent="." instance=ExtResource("2_uqciq")]
|
38 |
+
|
39 |
+
[node name="GameScene2" parent="." instance=ExtResource("2_uqciq")]
|
40 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10, 0, 0)
|
41 |
+
|
42 |
+
[node name="GameScene3" parent="." instance=ExtResource("2_uqciq")]
|
43 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -10, 0, 0)
|
44 |
+
|
45 |
+
[node name="GameScene4" parent="." instance=ExtResource("2_uqciq")]
|
46 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -10)
|
47 |
+
|
48 |
+
[node name="GameScene5" parent="." instance=ExtResource("2_uqciq")]
|
49 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10, 0, -10)
|
50 |
+
|
51 |
+
[node name="GameScene6" parent="." instance=ExtResource("2_uqciq")]
|
52 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -10, 0, -10)
|
53 |
+
|
54 |
+
[node name="GameScene7" parent="." instance=ExtResource("2_uqciq")]
|
55 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 10)
|
56 |
+
|
57 |
+
[node name="GameScene8" parent="." instance=ExtResource("2_uqciq")]
|
58 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10, 0, 10)
|
59 |
+
|
60 |
+
[node name="GameScene9" parent="." instance=ExtResource("2_uqciq")]
|
61 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -10, 0, 10)
|
62 |
+
|
63 |
+
[node name="GameScene10" parent="." instance=ExtResource("2_uqciq")]
|
64 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 30)
|
65 |
+
|
66 |
+
[node name="GameScene11" parent="." instance=ExtResource("2_uqciq")]
|
67 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10, 0, 30)
|
68 |
+
|
69 |
+
[node name="GameScene12" parent="." instance=ExtResource("2_uqciq")]
|
70 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -10, 0, 30)
|
71 |
+
|
72 |
+
[node name="GameScene13" parent="." instance=ExtResource("2_uqciq")]
|
73 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 20)
|
74 |
+
|
75 |
+
[node name="GameScene14" parent="." instance=ExtResource("2_uqciq")]
|
76 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10, 0, 20)
|
77 |
+
|
78 |
+
[node name="GameScene15" parent="." instance=ExtResource("2_uqciq")]
|
79 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -10, 0, 20)
|
80 |
+
|
81 |
+
[node name="GameScene16" parent="." instance=ExtResource("2_uqciq")]
|
82 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 40)
|
83 |
+
|
84 |
+
[node name="GameScene17" parent="." instance=ExtResource("2_uqciq")]
|
85 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10, 0, 40)
|
86 |
+
|
87 |
+
[node name="GameScene18" parent="." instance=ExtResource("2_uqciq")]
|
88 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -10, 0, 40)
|
89 |
+
|
90 |
+
[node name="GameScene19" parent="." instance=ExtResource("2_uqciq")]
|
91 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -30)
|
92 |
+
|
93 |
+
[node name="GameScene20" parent="." instance=ExtResource("2_uqciq")]
|
94 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10, 0, -30)
|
95 |
+
|
96 |
+
[node name="GameScene21" parent="." instance=ExtResource("2_uqciq")]
|
97 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -10, 0, -30)
|
98 |
+
|
99 |
+
[node name="GameScene22" parent="." instance=ExtResource("2_uqciq")]
|
100 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -40)
|
101 |
+
|
102 |
+
[node name="GameScene23" parent="." instance=ExtResource("2_uqciq")]
|
103 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10, 0, -40)
|
104 |
+
|
105 |
+
[node name="GameScene24" parent="." instance=ExtResource("2_uqciq")]
|
106 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -10, 0, -40)
|
107 |
+
|
108 |
+
[node name="GameScene25" parent="." instance=ExtResource("2_uqciq")]
|
109 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -20)
|
110 |
+
|
111 |
+
[node name="GameScene26" parent="." instance=ExtResource("2_uqciq")]
|
112 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10, 0, -20)
|
113 |
+
|
114 |
+
[node name="GameScene27" parent="." instance=ExtResource("2_uqciq")]
|
115 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -10, 0, -20)
|