Figured out clean WIP look at/move towards action
This commit is contained in:
@@ -1,20 +1,34 @@
|
|||||||
class_name MoveTowards extends ActionBase
|
class_name MoveTowards extends ActionBase
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# NOTE: Got following face target from:
|
||||||
|
# https://github.com/nealholt/space-shooter-3d/blob/9c4dab96615f06964b9c94e35c7bb232e87555de/Autoloads/Global.gd#L166
|
||||||
|
# And added as an aside the z rotation alignment with target
|
||||||
func process(jet: Jet) -> void:
|
func process(jet: Jet) -> void:
|
||||||
|
var percent = 0.10
|
||||||
|
var new_transform: Transform3D = jet.transform.looking_at(jet.target.global_position, jet.global_transform.basis.y)
|
||||||
|
var target_transform: Transform3D = jet.transform.interpolate_with(new_transform, percent)
|
||||||
|
jet.transform = target_transform
|
||||||
|
jet.rotation.z = jet.target.rotation.z
|
||||||
|
|
||||||
|
|
||||||
|
func old_process(jet: Jet) -> void:
|
||||||
if not is_instance_valid(jet.target): return
|
if not is_instance_valid(jet.target): return
|
||||||
|
|
||||||
var target_local_position: Vector3 = jet.to_local(jet.target.global_position)
|
var target_local_position: Vector3 = jet.to_local(jet.target.global_position)
|
||||||
var target_direction: Vector3 = target_local_position.normalized()
|
var target_direction: Vector3 = target_local_position.normalized()
|
||||||
jet.target_ray.target_position = target_direction
|
jet.target_ray.target_position = target_direction
|
||||||
jet.target_direction = target_direction
|
|
||||||
|
|
||||||
#NOTE: When using unit (normalized) vectors, the result will always be
|
#NOTE: When using unit (normalized) vectors, the result will always be
|
||||||
# between -1.0 (180 degree angle) when the vectors are facing opposite
|
# between -1.0 (180 degree angle) when the vectors are facing opposite
|
||||||
# directions, and 1.0 (0 degree angle) when the vectors are aligned.
|
# directions, and 1.0 (0 degree angle) when the vectors are aligned.
|
||||||
# Note also that, probably want to align order around node 'rotation_order' which is YXZ
|
# Note also that, probably want to align order around node 'rotation_order' which is YXZ
|
||||||
|
@warning_ignore("unused_variable")
|
||||||
var forward_dot: float = target_direction.dot(Vector3.UP)
|
var forward_dot: float = target_direction.dot(Vector3.UP)
|
||||||
|
@warning_ignore("unused_variable")
|
||||||
var lr_dot: float = target_direction.dot(Vector3.RIGHT)
|
var lr_dot: float = target_direction.dot(Vector3.RIGHT)
|
||||||
|
@warning_ignore("unused_variable")
|
||||||
var ud_dot: float = target_direction.dot(Vector3.FORWARD)
|
var ud_dot: float = target_direction.dot(Vector3.FORWARD)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -9,4 +9,5 @@ func process(jet: Jet) -> void:
|
|||||||
|
|
||||||
func check_orientation(jet: Jet) -> void:
|
func check_orientation(jet: Jet) -> void:
|
||||||
#var rotation_dot = clampf(jet.rotation_degrees.z / 360.0, -1, 1)
|
#var rotation_dot = clampf(jet.rotation_degrees.z / 360.0, -1, 1)
|
||||||
|
@warning_ignore("unused_variable")
|
||||||
var rotation_norm = jet.rotation_degrees.normalized()
|
var rotation_norm = jet.rotation_degrees.normalized()
|
||||||
|
|||||||
@@ -37,74 +37,4 @@ func assign_jet_action(jet: Jet) -> void:
|
|||||||
jet.strategy_stack.add_child( RollLeftSideUp.new() )
|
jet.strategy_stack.add_child( RollLeftSideUp.new() )
|
||||||
|
|
||||||
func process_jet_plan(jet: Jet) -> void:
|
func process_jet_plan(jet: Jet) -> void:
|
||||||
#process_jet_plan_old(jet)
|
jet.strategy_stack.process_action(jet)
|
||||||
#process_jet_plan_gpt(jet)
|
|
||||||
#jet.strategy_stack.process_action(jet)
|
|
||||||
|
|
||||||
var target_local_position: Vector3 = jet.to_local(jet.target.global_position)
|
|
||||||
var target_direction: Vector3 = target_local_position.normalized()
|
|
||||||
jet.target_direction = target_direction
|
|
||||||
|
|
||||||
|
|
||||||
func process_jet_plan_old(jet: Jet) -> void:
|
|
||||||
#var direction: Vector3 = (
|
|
||||||
#jet.target.global_position - jet.global_position
|
|
||||||
#).normalized()
|
|
||||||
|
|
||||||
var target_local_position: Vector3 = jet.to_local(jet.target.global_position)
|
|
||||||
var target_direction: Vector3 = target_local_position.normalized()
|
|
||||||
jet.target_ray.target_position = target_direction
|
|
||||||
|
|
||||||
if maxf(target_direction.z, 0.0) == 0.0:
|
|
||||||
get_node("../../base_ui/target_position_fb").text = "infront"
|
|
||||||
jet.controller.cpu.no_action()
|
|
||||||
|
|
||||||
if target_direction.x > 0.2:
|
|
||||||
jet.controller.cpu.yaw_right()
|
|
||||||
elif target_direction.x < -0.2:
|
|
||||||
jet.controller.cpu.yaw_left()
|
|
||||||
|
|
||||||
elif maxf(target_direction.y, 0.5) == 0.5:
|
|
||||||
jet.controller.cpu.no_action()
|
|
||||||
|
|
||||||
if target_direction.y > 0.2:
|
|
||||||
get_node("../../base_ui/target_position_ab").text = "above"
|
|
||||||
jet.controller.cpu.pitch_up()
|
|
||||||
elif target_direction.y < -0.2:
|
|
||||||
get_node("../../base_ui/target_position_ab").text = "below"
|
|
||||||
jet.controller.cpu.pitch_down()
|
|
||||||
|
|
||||||
elif maxf(target_direction.y, -0.5) == -0.5:
|
|
||||||
get_node("../../base_ui/target_position_ab").text = "below"
|
|
||||||
jet.controller.cpu.no_action()
|
|
||||||
|
|
||||||
if target_direction.y > 0.2:
|
|
||||||
jet.controller.cpu.yaw_right()
|
|
||||||
elif target_direction.y < -0.2:
|
|
||||||
jet.controller.cpu.yaw_left()
|
|
||||||
|
|
||||||
else:
|
|
||||||
get_node("../../base_ui/target_position_fb").text = "behind"
|
|
||||||
jet.controller.cpu.no_action()
|
|
||||||
|
|
||||||
if target_direction.x > 0.2:
|
|
||||||
jet.controller.cpu.yaw_right()
|
|
||||||
elif target_direction.x < -0.2:
|
|
||||||
jet.controller.cpu.yaw_left()
|
|
||||||
|
|
||||||
get_node("../../base_ui/target_z").text = str(target_direction.z)
|
|
||||||
get_node("../../base_ui/target_x").text = str(target_direction.x)
|
|
||||||
|
|
||||||
func process_jet_plan_gpt(jet: Jet) -> void:
|
|
||||||
# NOTE: (From GPT) Mostly works but with precession nor do I really understand it...
|
|
||||||
var target_direction: Vector3 = jet.to_local(jet.target.global_position)
|
|
||||||
var forward_dot: float = target_direction.dot(Vector3.UP)
|
|
||||||
if forward_dot >= cos(deg_to_rad(37.5)):
|
|
||||||
get_node("../../base_ui/target_position_fb").text = "infront"
|
|
||||||
jet.controller.cpu.no_action()
|
|
||||||
else:
|
|
||||||
get_node("../../base_ui/target_position_fb").text = "behind"
|
|
||||||
if target_direction.x >= 0.2:
|
|
||||||
jet.controller.cpu.yaw_right()
|
|
||||||
elif target_direction.x <= -0.2:
|
|
||||||
jet.controller.cpu.yaw_left()
|
|
||||||
|
|||||||
@@ -0,0 +1,81 @@
|
|||||||
|
[gd_scene load_steps=13 format=3 uid="uid://c5qdgav7sl8k5"]
|
||||||
|
|
||||||
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_iba6n"]
|
||||||
|
albedo_color = Color(1, 1, 0.3882353, 1)
|
||||||
|
emission_enabled = true
|
||||||
|
emission = Color(1, 1, 0.3882353, 1)
|
||||||
|
|
||||||
|
[sub_resource type="BoxMesh" id="BoxMesh_711dk"]
|
||||||
|
material = SubResource("StandardMaterial3D_iba6n")
|
||||||
|
|
||||||
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_5o00y"]
|
||||||
|
albedo_color = Color(0.49803922, 0.49411765, 0, 1)
|
||||||
|
emission_enabled = true
|
||||||
|
emission = Color(0.49805313, 0.49511182, 0, 1)
|
||||||
|
|
||||||
|
[sub_resource type="BoxMesh" id="BoxMesh_8ov77"]
|
||||||
|
material = SubResource("StandardMaterial3D_5o00y")
|
||||||
|
|
||||||
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_711dk"]
|
||||||
|
albedo_color = Color(0.5882353, 0.20392157, 0, 1)
|
||||||
|
emission_enabled = true
|
||||||
|
emission = Color(0.5882353, 0.20392157, 0, 1)
|
||||||
|
|
||||||
|
[sub_resource type="BoxMesh" id="BoxMesh_5o00y"]
|
||||||
|
material = SubResource("StandardMaterial3D_711dk")
|
||||||
|
|
||||||
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_8ov77"]
|
||||||
|
albedo_color = Color(1, 0.23529412, 0.09411765, 1)
|
||||||
|
emission_enabled = true
|
||||||
|
emission = Color(1, 0.23529412, 0.09411765, 1)
|
||||||
|
|
||||||
|
[sub_resource type="BoxMesh" id="BoxMesh_xfwsp"]
|
||||||
|
material = SubResource("StandardMaterial3D_8ov77")
|
||||||
|
|
||||||
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_xfwsp"]
|
||||||
|
albedo_color = Color(0, 0.33333334, 0.80784315, 1)
|
||||||
|
emission_enabled = true
|
||||||
|
emission = Color(0, 0.33333334, 0.80784315, 1)
|
||||||
|
|
||||||
|
[sub_resource type="BoxMesh" id="BoxMesh_ggpwi"]
|
||||||
|
material = SubResource("StandardMaterial3D_xfwsp")
|
||||||
|
|
||||||
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ggpwi"]
|
||||||
|
albedo_color = Color(0, 0.18431373, 0.4745098, 1)
|
||||||
|
emission_enabled = true
|
||||||
|
emission = Color(0, 0.18431373, 0.4745098, 1)
|
||||||
|
|
||||||
|
[sub_resource type="BoxMesh" id="BoxMesh_530sk"]
|
||||||
|
material = SubResource("StandardMaterial3D_ggpwi")
|
||||||
|
|
||||||
|
[node name="direction_markers" type="Node3D"]
|
||||||
|
|
||||||
|
[node name="up" type="MeshInstance3D" parent="."]
|
||||||
|
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 2, 0)
|
||||||
|
mesh = SubResource("BoxMesh_711dk")
|
||||||
|
skeleton = NodePath("../..")
|
||||||
|
|
||||||
|
[node name="down" type="MeshInstance3D" parent="."]
|
||||||
|
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, -2, 0)
|
||||||
|
mesh = SubResource("BoxMesh_8ov77")
|
||||||
|
skeleton = NodePath("../..")
|
||||||
|
|
||||||
|
[node name="left" type="MeshInstance3D" parent="."]
|
||||||
|
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, -2, 0, 0)
|
||||||
|
mesh = SubResource("BoxMesh_5o00y")
|
||||||
|
skeleton = NodePath("../..")
|
||||||
|
|
||||||
|
[node name="right" type="MeshInstance3D" parent="."]
|
||||||
|
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 2, 0, 0)
|
||||||
|
mesh = SubResource("BoxMesh_xfwsp")
|
||||||
|
skeleton = NodePath("../..")
|
||||||
|
|
||||||
|
[node name="back" type="MeshInstance3D" parent="."]
|
||||||
|
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0, 2)
|
||||||
|
mesh = SubResource("BoxMesh_ggpwi")
|
||||||
|
skeleton = NodePath("../..")
|
||||||
|
|
||||||
|
[node name="forward" type="MeshInstance3D" parent="."]
|
||||||
|
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0, -2)
|
||||||
|
mesh = SubResource("BoxMesh_530sk")
|
||||||
|
skeleton = NodePath("../..")
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
extends Node3D
|
||||||
|
|
||||||
|
|
||||||
|
@onready var player: Node3D = $player
|
||||||
|
@onready var target: MeshInstance3D = $target
|
||||||
|
@onready var camera: Camera3D = $player/camera
|
||||||
|
@onready var ray: RayCast3D = $player/ray
|
||||||
|
@onready var dir_vec: RayCast3D = $dir_vec
|
||||||
|
|
||||||
|
var WIDTH: int = 960 # (1920/2)
|
||||||
|
var HEIGHT: int = 540 # (1080/2)
|
||||||
|
|
||||||
|
func _process(_delta: float) -> void:
|
||||||
|
var difference_vector: Vector3 = player.to_local(target.global_position)
|
||||||
|
var direction_vector: Vector3 = difference_vector.normalized()
|
||||||
|
|
||||||
|
ray.target_position = direction_vector
|
||||||
|
dir_vec.target_position = direction_vector
|
||||||
|
# NOTE: Divide by 2 and +- that for same range but center of 'screen' is 0,0.
|
||||||
|
# Otherwise, 0,0 is top left
|
||||||
|
var pixil_x = direction_vector.x * WIDTH
|
||||||
|
var pixil_y = direction_vector.y * HEIGHT
|
||||||
|
print("X: ", pixil_x)
|
||||||
|
print("Y: ", pixil_y)
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
uid://db7v1784jmvy4
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
[gd_scene load_steps=4 format=3 uid="uid://bkw57v8fh4wy5"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://db7v1784jmvy4" path="res://skunk_works/test_look.gd" id="1_ssn03"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://bhjfvc7gkrvah" path="res://base_environment.tscn" id="2_7v77a"]
|
||||||
|
|
||||||
|
[sub_resource type="CapsuleMesh" id="CapsuleMesh_ssn03"]
|
||||||
|
|
||||||
|
[node name="test_look" type="Node3D"]
|
||||||
|
script = ExtResource("1_ssn03")
|
||||||
|
|
||||||
|
[node name="base_environment" parent="." instance=ExtResource("2_7v77a")]
|
||||||
|
|
||||||
|
[node name="player" type="Node3D" parent="."]
|
||||||
|
|
||||||
|
[node name="camera" type="Camera3D" parent="player"]
|
||||||
|
current = true
|
||||||
|
|
||||||
|
[node name="ray" type="RayCast3D" parent="player"]
|
||||||
|
debug_shape_custom_color = Color(0.77254903, 0, 0, 1)
|
||||||
|
|
||||||
|
[node name="dir_vec" type="RayCast3D" parent="."]
|
||||||
|
debug_shape_custom_color = Color(0, 0.43529412, 0.8392157, 1)
|
||||||
|
|
||||||
|
[node name="target" type="MeshInstance3D" parent="."]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -10, 2, -10)
|
||||||
|
mesh = SubResource("CapsuleMesh_ssn03")
|
||||||
@@ -1,55 +1,8 @@
|
|||||||
[gd_scene load_steps=17 format=3 uid="uid://boihqkqrbm0ti"]
|
[gd_scene load_steps=6 format=3 uid="uid://boihqkqrbm0ti"]
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://emw28v4vimpy" path="res://skunk_works/test_world.gd" id="1_nnwr0"]
|
[ext_resource type="Script" uid="uid://emw28v4vimpy" path="res://skunk_works/test_world.gd" id="1_nnwr0"]
|
||||||
[ext_resource type="PackedScene" uid="uid://bhjfvc7gkrvah" path="res://base_environment.tscn" id="2_iba6n"]
|
[ext_resource type="PackedScene" uid="uid://bhjfvc7gkrvah" path="res://base_environment.tscn" id="2_iba6n"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://c5qdgav7sl8k5" path="res://skunk_works/direction_markers.tscn" id="3_711dk"]
|
||||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_iba6n"]
|
|
||||||
albedo_color = Color(1, 1, 0.3882353, 1)
|
|
||||||
emission_enabled = true
|
|
||||||
emission = Color(1, 1, 0.3882353, 1)
|
|
||||||
|
|
||||||
[sub_resource type="BoxMesh" id="BoxMesh_711dk"]
|
|
||||||
material = SubResource("StandardMaterial3D_iba6n")
|
|
||||||
|
|
||||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_5o00y"]
|
|
||||||
albedo_color = Color(0.49803922, 0.49411765, 0, 1)
|
|
||||||
emission_enabled = true
|
|
||||||
emission = Color(0.49805313, 0.49511182, 0, 1)
|
|
||||||
|
|
||||||
[sub_resource type="BoxMesh" id="BoxMesh_8ov77"]
|
|
||||||
material = SubResource("StandardMaterial3D_5o00y")
|
|
||||||
|
|
||||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_711dk"]
|
|
||||||
albedo_color = Color(0.5882353, 0.20392157, 0, 1)
|
|
||||||
emission_enabled = true
|
|
||||||
emission = Color(0.5882353, 0.20392157, 0, 1)
|
|
||||||
|
|
||||||
[sub_resource type="BoxMesh" id="BoxMesh_5o00y"]
|
|
||||||
material = SubResource("StandardMaterial3D_711dk")
|
|
||||||
|
|
||||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_8ov77"]
|
|
||||||
albedo_color = Color(1, 0.23529412, 0.09411765, 1)
|
|
||||||
emission_enabled = true
|
|
||||||
emission = Color(1, 0.23529412, 0.09411765, 1)
|
|
||||||
|
|
||||||
[sub_resource type="BoxMesh" id="BoxMesh_xfwsp"]
|
|
||||||
material = SubResource("StandardMaterial3D_8ov77")
|
|
||||||
|
|
||||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_xfwsp"]
|
|
||||||
albedo_color = Color(0, 0.33333334, 0.80784315, 1)
|
|
||||||
emission_enabled = true
|
|
||||||
emission = Color(0, 0.33333334, 0.80784315, 1)
|
|
||||||
|
|
||||||
[sub_resource type="BoxMesh" id="BoxMesh_ggpwi"]
|
|
||||||
material = SubResource("StandardMaterial3D_xfwsp")
|
|
||||||
|
|
||||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ggpwi"]
|
|
||||||
albedo_color = Color(0, 0.18431373, 0.4745098, 1)
|
|
||||||
emission_enabled = true
|
|
||||||
emission = Color(0, 0.18431373, 0.4745098, 1)
|
|
||||||
|
|
||||||
[sub_resource type="BoxMesh" id="BoxMesh_530sk"]
|
|
||||||
material = SubResource("StandardMaterial3D_ggpwi")
|
|
||||||
|
|
||||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_530sk"]
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_530sk"]
|
||||||
albedo_color = Color(0.7921569, 0, 0, 1)
|
albedo_color = Color(0.7921569, 0, 0, 1)
|
||||||
@@ -68,58 +21,14 @@ script = ExtResource("1_nnwr0")
|
|||||||
|
|
||||||
[node name="target_ray" type="RayCast3D" parent="jet"]
|
[node name="target_ray" type="RayCast3D" parent="jet"]
|
||||||
|
|
||||||
[node name="up" type="MeshInstance3D" parent="jet"]
|
[node name="direction_markers" parent="jet" instance=ExtResource("3_711dk")]
|
||||||
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 2, 0)
|
|
||||||
mesh = SubResource("BoxMesh_711dk")
|
|
||||||
|
|
||||||
[node name="down" type="MeshInstance3D" parent="jet"]
|
|
||||||
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, -2, 0)
|
|
||||||
mesh = SubResource("BoxMesh_8ov77")
|
|
||||||
|
|
||||||
[node name="left" type="MeshInstance3D" parent="jet"]
|
|
||||||
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, -2, 0, 0)
|
|
||||||
mesh = SubResource("BoxMesh_5o00y")
|
|
||||||
|
|
||||||
[node name="right" type="MeshInstance3D" parent="jet"]
|
|
||||||
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 2, 0, 0)
|
|
||||||
mesh = SubResource("BoxMesh_xfwsp")
|
|
||||||
|
|
||||||
[node name="back" type="MeshInstance3D" parent="jet"]
|
|
||||||
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0, 2)
|
|
||||||
mesh = SubResource("BoxMesh_ggpwi")
|
|
||||||
|
|
||||||
[node name="forward" type="MeshInstance3D" parent="jet"]
|
|
||||||
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0, -2)
|
|
||||||
mesh = SubResource("BoxMesh_530sk")
|
|
||||||
|
|
||||||
[node name="jet2" type="Node3D" parent="."]
|
[node name="jet2" type="Node3D" parent="."]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.668, 7.773, -22.128)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.668, 7.773, -22.128)
|
||||||
|
|
||||||
[node name="target_ray" type="RayCast3D" parent="jet2"]
|
[node name="target_ray" type="RayCast3D" parent="jet2"]
|
||||||
|
|
||||||
[node name="up" type="MeshInstance3D" parent="jet2"]
|
[node name="direction_markers" parent="jet2" instance=ExtResource("3_711dk")]
|
||||||
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 2, 0)
|
|
||||||
mesh = SubResource("BoxMesh_711dk")
|
|
||||||
|
|
||||||
[node name="down" type="MeshInstance3D" parent="jet2"]
|
|
||||||
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, -2, 0)
|
|
||||||
mesh = SubResource("BoxMesh_8ov77")
|
|
||||||
|
|
||||||
[node name="left" type="MeshInstance3D" parent="jet2"]
|
|
||||||
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, -2, 0, 0)
|
|
||||||
mesh = SubResource("BoxMesh_5o00y")
|
|
||||||
|
|
||||||
[node name="right" type="MeshInstance3D" parent="jet2"]
|
|
||||||
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 2, 0, 0)
|
|
||||||
mesh = SubResource("BoxMesh_xfwsp")
|
|
||||||
|
|
||||||
[node name="back" type="MeshInstance3D" parent="jet2"]
|
|
||||||
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0, 2)
|
|
||||||
mesh = SubResource("BoxMesh_ggpwi")
|
|
||||||
|
|
||||||
[node name="forward" type="MeshInstance3D" parent="jet2"]
|
|
||||||
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0, -2)
|
|
||||||
mesh = SubResource("BoxMesh_530sk")
|
|
||||||
|
|
||||||
[node name="ray" type="RayCast3D" parent="."]
|
[node name="ray" type="RayCast3D" parent="."]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user