Added region-stepped origin.
This commit is contained in:
parent
907695442f
commit
73baafbd6c
9 changed files with 83 additions and 2 deletions
4
demo/demo.gd
Normal file
4
demo/demo.gd
Normal file
|
@ -0,0 +1,4 @@
|
|||
extends Node3D
|
||||
|
||||
func _ready() -> void:
|
||||
RegionOrigin.anchor = $FixedWingAircraft/RegionTransform
|
1
demo/demo.gd.uid
Normal file
1
demo/demo.gd.uid
Normal file
|
@ -0,0 +1 @@
|
|||
uid://cdk7y1rat3juk
|
|
@ -1,5 +1,6 @@
|
|||
[gd_scene load_steps=18 format=3 uid="uid://d20jwlre5rc5m"]
|
||||
[gd_scene load_steps=20 format=3 uid="uid://d20jwlre5rc5m"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cdk7y1rat3juk" path="res://demo/demo.gd" id="1_oeqrt"]
|
||||
[ext_resource type="Texture2D" uid="uid://bruwqvb6qrsfn" path="res://demo/textures/untexture.png" id="1_ytiva"]
|
||||
[ext_resource type="Script" uid="uid://bddnsq0h2tpf" path="res://scripts/aircraft/nodes/fixed_wing_aircraft.gd" id="2_dar0o"]
|
||||
[ext_resource type="Resource" uid="uid://dpk3bgq54ajul" path="res://demo/airfoils/symmetric.tres" id="3_u10mr"]
|
||||
|
@ -7,6 +8,7 @@
|
|||
[ext_resource type="Resource" uid="uid://p2i7a806s6gs" path="res://demo/propulsion/electric_motor.tres" id="4_s1s6j"]
|
||||
[ext_resource type="Script" uid="uid://pc3j1c6e1ra7" path="res://scripts/aircraft/nodes/flight_sim_controller.gd" id="5_s1s6j"]
|
||||
[ext_resource type="Script" uid="uid://tgj0rvn5wj8t" path="res://demo/hud.gd" id="6_onu7k"]
|
||||
[ext_resource type="Script" uid="uid://ddh4omp23xc58" path="res://scripts/origin/region_transform.gd" id="7_onvmd"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_j5lb4"]
|
||||
albedo_texture = ExtResource("1_ytiva")
|
||||
|
@ -14,7 +16,8 @@ uv1_scale = Vector3(100, 100, 100)
|
|||
|
||||
[sub_resource type="PlaneMesh" id="PlaneMesh_5hjng"]
|
||||
material = SubResource("StandardMaterial3D_j5lb4")
|
||||
size = Vector2(2000, 2000)
|
||||
size = Vector2(1000, 1000)
|
||||
center_offset = Vector3(500, 0, 500)
|
||||
|
||||
[sub_resource type="Curve" id="Curve_s1s6j"]
|
||||
_limits = [0.0, 0.5, 0.0, 20.0]
|
||||
|
@ -72,6 +75,7 @@ ambient_light_source = 3
|
|||
ambient_light_color = Color(1, 1, 1, 1)
|
||||
|
||||
[node name="Demo" type="Node3D"]
|
||||
script = ExtResource("1_oeqrt")
|
||||
|
||||
[node name="Ground" type="MeshInstance3D" parent="."]
|
||||
mesh = SubResource("PlaneMesh_5hjng")
|
||||
|
@ -96,6 +100,11 @@ metadata/_custom_type_script = "uid://pc3j1c6e1ra7"
|
|||
|
||||
[node name="Camera3D" type="Camera3D" parent="FixedWingAircraft"]
|
||||
|
||||
[node name="RegionTransform" type="Node" parent="FixedWingAircraft" node_paths=PackedStringArray("target")]
|
||||
script = ExtResource("7_onvmd")
|
||||
target = NodePath("..")
|
||||
metadata/_custom_type_script = "uid://ddh4omp23xc58"
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
|
||||
[node name="HUD" type="Control" parent="CanvasLayer" node_paths=PackedStringArray("source")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue