Files
godot-tests/tests/cubic_slerp_small/node_3d.tscn
K. S. Ernest (iFire) Lee 50edd146dd Add godot cubic interpolation tests.
Update the license to the standard template.
2022-07-24 17:01:16 -07:00

128 lines
4.1 KiB
Plaintext

[gd_scene load_steps=6 format=3 uid="uid://do0yfibxleg14"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_4eswk"]
albedo_color = Color(0, 1, 0, 1)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ffia4"]
albedo_color = Color(1, 0, 0, 1)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_dhgvt"]
albedo_color = Color(0, 0, 1, 1)
[sub_resource type="Animation" id="Animation_l45ir"]
resource_name = "New Anim"
length = 3.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("gizmo:quaternion")
tracks/0/interp = 2
tracks/0/loop_wrap = false
tracks/0/keys = {
"times": PackedFloat32Array(0.5, 1.2, 2.1, 2.8),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 0,
"values": [Quaternion(0.991445, 0, 0, 0.130526), Quaternion(-0.41709, 0, 0, 0.908865), Quaternion(0, 0, 0, 1), Quaternion(0.991445, 0, 0, -0.130526)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("gizmo2:quaternion")
tracks/1/interp = 1
tracks/1/loop_wrap = false
tracks/1/keys = {
"times": PackedFloat32Array(0.5, 1.2, 2.1, 2.8),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 0,
"values": [Quaternion(0.991, 0, 0, 0.131), Quaternion(-0.417, 0, 0, 0.909), Quaternion(0, 0, 0, 1), Quaternion(0.991, 0, 0, -0.131)]
}
[sub_resource type="Animation" id="Animation_7v8ca"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("gizmo:rotation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector3(3.14159, 0, 0)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("gizmo:quaternion")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Quaternion(0, 0, 0, 1)]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("gizmo2:quaternion")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Quaternion(0, 0, 0, 1)]
}
[node name="Node3D" type="Node3D"]
[node name="gizmo" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, -1, -2.53518e-06, 0, 2.53518e-06, -1, 0, 0, 1)
rotation_edit_mode = 1
[node name="CSGBox3D" type="CSGBox3D" parent="gizmo"]
size = Vector3(0.2, 0.2, 0.2)
[node name="CSGBox3D2" type="CSGBox3D" parent="gizmo"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
size = Vector3(0.05, 1, 0.05)
material = SubResource( "StandardMaterial3D_4eswk" )
[node name="CSGBox3D3" type="CSGBox3D" parent="gizmo"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5, 0, 0)
size = Vector3(1, 0.05, 0.05)
material = SubResource( "StandardMaterial3D_ffia4" )
[node name="CSGBox3D4" type="CSGBox3D" parent="gizmo"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.5)
size = Vector3(0.05, 0.05, 1)
material = SubResource( "StandardMaterial3D_dhgvt" )
[node name="gizmo2" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -1)
rotation_edit_mode = 1
[node name="CSGBox3D" type="CSGBox3D" parent="gizmo2"]
size = Vector3(0.2, 0.2, 0.2)
[node name="CSGBox3D2" type="CSGBox3D" parent="gizmo2"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
size = Vector3(0.05, 1, 0.05)
material = SubResource( "StandardMaterial3D_4eswk" )
[node name="CSGBox3D3" type="CSGBox3D" parent="gizmo2"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5, 0, 0)
size = Vector3(1, 0.05, 0.05)
material = SubResource( "StandardMaterial3D_ffia4" )
[node name="CSGBox3D4" type="CSGBox3D" parent="gizmo2"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.5)
size = Vector3(0.05, 0.05, 1)
material = SubResource( "StandardMaterial3D_dhgvt" )
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
"anims/New Anim" = SubResource( "Animation_l45ir" )
anims/RESET = SubResource( "Animation_7v8ca" )