Improve the Kinematic Character 3D demo

This commit is contained in:
Aaron Franke
2021-03-03 01:13:50 -05:00
parent fecbed5fb2
commit 973c12264c
24 changed files with 2250 additions and 319 deletions

File diff suppressed because one or more lines are too long

View File

@@ -1,69 +0,0 @@
[gd_scene load_steps=7 format=2]
[ext_resource path="res://cubio.gd" type="Script" id=1]
[ext_resource path="res://white_wood.png" type="Texture" id=2]
[ext_resource path="res://follow_camera.gd" type="Script" id=3]
[sub_resource type="SpatialMaterial" id=1]
albedo_texture = ExtResource( 2 )
metallic = 0.46
roughness = 0.0
[sub_resource type="ArrayMesh" id=2]
surfaces/0 = {
"aabb": AABB( -1, -1, -1, 2, 2, 2 ),
"array_data": PoolByteArray( 147, 59, 147, 59, 255, 187, 0, 60, 43, 43, 145, 0, 201, 59, 194, 38, 147, 59, 147, 187, 255, 187, 0, 60, 43, 213, 145, 0, 201, 59, 201, 59, 147, 187, 147, 187, 0, 188, 0, 60, 213, 213, 145, 0, 194, 38, 201, 59, 147, 187, 147, 59, 0, 188, 0, 60, 213, 43, 145, 0, 194, 38, 194, 38, 147, 59, 147, 187, 0, 60, 0, 60, 43, 213, 111, 0, 201, 59, 201, 59, 147, 59, 147, 59, 0, 60, 0, 60, 43, 43, 111, 0, 201, 59, 194, 38, 147, 187, 147, 59, 255, 59, 0, 60, 213, 43, 111, 0, 194, 38, 194, 38, 147, 187, 147, 187, 255, 59, 0, 60, 213, 213, 111, 0, 194, 38, 201, 59, 0, 188, 147, 187, 147, 59, 0, 60, 145, 213, 43, 0, 194, 38, 201, 59, 0, 188, 147, 59, 147, 59, 0, 60, 145, 43, 43, 0, 194, 38, 194, 38, 255, 187, 147, 59, 147, 187, 0, 60, 145, 43, 213, 0, 201, 59, 194, 38, 255, 187, 147, 187, 147, 187, 0, 60, 145, 213, 213, 0, 201, 59, 201, 59, 147, 59, 0, 60, 147, 187, 0, 60, 43, 111, 213, 0, 201, 59, 194, 38, 147, 187, 0, 60, 147, 187, 0, 60, 213, 111, 213, 0, 194, 38, 194, 38, 147, 187, 0, 60, 147, 59, 0, 60, 213, 111, 43, 0, 194, 38, 201, 59, 147, 59, 0, 60, 147, 59, 0, 60, 43, 111, 43, 0, 201, 59, 201, 59, 0, 60, 147, 187, 147, 187, 0, 60, 111, 213, 213, 0, 201, 59, 201, 59, 0, 60, 147, 59, 147, 187, 0, 60, 111, 43, 213, 0, 201, 59, 194, 38, 255, 59, 147, 59, 147, 59, 0, 60, 111, 43, 43, 0, 194, 38, 194, 38, 0, 60, 147, 187, 147, 59, 0, 60, 111, 213, 43, 0, 194, 38, 201, 59, 147, 59, 147, 187, 255, 187, 0, 60, 43, 213, 145, 0, 201, 59, 0, 60, 0, 60, 147, 187, 147, 187, 0, 60, 111, 213, 213, 0, 0, 60, 27, 60, 147, 59, 0, 188, 147, 187, 0, 60, 43, 145, 213, 0, 201, 59, 27, 60, 147, 59, 0, 188, 147, 59, 0, 60, 43, 145, 43, 0, 201, 59, 201, 59, 0, 60, 147, 187, 147, 59, 0, 60, 111, 213, 43, 0, 0, 60, 201, 59, 147, 59, 147, 187, 0, 60, 0, 60, 43, 213, 111, 0, 201, 59, 0, 60, 147, 187, 0, 188, 147, 59, 0, 60, 213, 145, 43, 0, 194, 38, 201, 59, 147, 187, 147, 187, 255, 59, 0, 60, 213, 213, 111, 0, 194, 38, 255, 59, 0, 188, 147, 187, 147, 59, 0, 60, 145, 213, 43, 0, 0, 0, 201, 59, 255, 187, 147, 187, 147, 187, 0, 60, 145, 213, 213, 0, 0, 0, 194, 38, 147, 187, 147, 187, 0, 188, 0, 60, 213, 213, 145, 0, 194, 38, 0, 0, 147, 187, 0, 188, 147, 187, 0, 60, 213, 145, 213, 0, 194, 38, 194, 38, 0, 60, 147, 59, 147, 187, 0, 60, 111, 43, 213, 0, 0, 0, 194, 38, 147, 59, 147, 59, 255, 187, 0, 60, 43, 43, 145, 0, 194, 166, 0, 0, 147, 59, 0, 60, 147, 187, 0, 60, 43, 111, 213, 0, 194, 166, 194, 38, 147, 59, 0, 60, 147, 59, 0, 60, 43, 111, 43, 0, 201, 59, 0, 60, 147, 59, 147, 59, 0, 60, 0, 60, 43, 43, 111, 0, 201, 59, 27, 60, 255, 59, 147, 59, 147, 59, 0, 60, 111, 43, 43, 0, 255, 59, 27, 60, 0, 188, 147, 59, 147, 59, 0, 60, 145, 43, 43, 0, 0, 0, 201, 59, 147, 187, 147, 59, 255, 59, 0, 60, 213, 43, 111, 0, 194, 38, 255, 59, 147, 187, 147, 59, 0, 188, 0, 60, 213, 43, 145, 0, 194, 38, 0, 60, 255, 187, 147, 59, 147, 187, 0, 60, 145, 43, 213, 0, 0, 0, 27, 60, 147, 187, 0, 60, 147, 187, 0, 60, 213, 111, 213, 0, 194, 38, 27, 60, 0, 60, 147, 187, 147, 187, 0, 60, 111, 213, 213, 0, 0, 0, 194, 38, 0, 60, 147, 187, 147, 59, 0, 60, 111, 213, 43, 0, 0, 0, 201, 59, 147, 59, 0, 188, 147, 59, 0, 60, 43, 145, 43, 0, 194, 166, 201, 59, 147, 59, 0, 188, 147, 187, 0, 60, 43, 145, 213, 0, 194, 166, 194, 38, 147, 59, 147, 187, 255, 187, 0, 60, 43, 213, 145, 0, 201, 59, 0, 0, 147, 59, 0, 188, 147, 187, 0, 60, 43, 145, 213, 0, 201, 59, 194, 38, 0, 60, 147, 59, 147, 187, 0, 60, 111, 43, 213, 0, 0, 60, 194, 38, 0, 60, 147, 187, 147, 187, 0, 60, 111, 213, 213, 0, 0, 60, 201, 59, 255, 59, 147, 59, 147, 59, 0, 60, 111, 43, 43, 0, 0, 0, 194, 38, 147, 59, 147, 59, 0, 60, 0, 60, 43, 43, 111, 0, 194, 166, 194, 38, 147, 59, 147, 187, 0, 60, 0, 60, 43, 213, 111, 0, 194, 166, 201, 59, 147, 187, 0, 188, 147, 187, 0, 60, 213, 145, 213, 0, 201, 59, 0, 60, 147, 187, 0, 188, 147, 59, 0, 60, 213, 145, 43, 0, 194, 38, 0, 60, 0, 188, 147, 59, 147, 59, 0, 60, 145, 43, 43, 0, 0, 0, 194, 38, 0, 188, 147, 187, 147, 59, 0, 60, 145, 213, 43, 0, 0, 0, 201, 59, 255, 187, 147, 187, 147, 187, 0, 60, 145, 213, 213, 0, 0, 0, 201, 59, 255, 187, 147, 59, 147, 187, 0, 60, 145, 43, 213, 0, 0, 0, 194, 38, 255, 59, 147, 59, 147, 59, 0, 60, 111, 43, 43, 0, 255, 59, 201, 59, 0, 60, 147, 59, 147, 187, 0, 60, 111, 43, 213, 0, 0, 60, 194, 38, 147, 59, 147, 59, 255, 187, 0, 60, 43, 43, 145, 0, 201, 59, 0, 0, 147, 187, 147, 59, 0, 188, 0, 60, 213, 43, 145, 0, 194, 38, 0, 0, 147, 59, 147, 59, 0, 60, 0, 60, 43, 43, 111, 0, 201, 59, 0, 60 ),
"array_index_data": PoolByteArray( 0, 0, 2, 0, 1, 0, 0, 0, 3, 0, 2, 0, 4, 0, 6, 0, 5, 0, 4, 0, 7, 0, 6, 0, 8, 0, 10, 0, 9, 0, 8, 0, 11, 0, 10, 0, 12, 0, 14, 0, 13, 0, 12, 0, 15, 0, 14, 0, 16, 0, 18, 0, 17, 0, 16, 0, 19, 0, 18, 0, 20, 0, 22, 0, 21, 0, 23, 0, 25, 0, 24, 0, 26, 0, 28, 0, 27, 0, 29, 0, 31, 0, 30, 0, 32, 0, 34, 0, 33, 0, 35, 0, 37, 0, 36, 0, 14, 0, 39, 0, 38, 0, 40, 0, 42, 0, 41, 0, 43, 0, 45, 0, 44, 0, 43, 0, 46, 0, 45, 0, 30, 0, 48, 0, 47, 0, 30, 0, 31, 0, 48, 0, 1, 0, 49, 0, 0, 0, 1, 0, 50, 0, 49, 0, 25, 0, 26, 0, 27, 0, 25, 0, 23, 0, 26, 0, 44, 0, 52, 0, 51, 0, 44, 0, 53, 0, 52, 0, 8, 0, 54, 0, 11, 0, 8, 0, 55, 0, 54, 0, 7, 0, 56, 0, 6, 0, 7, 0, 57, 0, 56, 0, 58, 0, 3, 0, 59, 0, 58, 0, 2, 0, 3, 0, 12, 0, 60, 0, 15, 0, 12, 0, 61, 0, 60, 0, 62, 0, 13, 0, 63, 0, 62, 0, 12, 0, 13, 0, 15, 0, 39, 0, 14, 0, 15, 0, 64, 0, 39, 0, 14, 0, 59, 0, 13, 0, 14, 0, 38, 0, 59, 0, 48, 0, 26, 0, 23, 0, 48, 0, 31, 0, 26, 0 ),
"blend_shape_data": [ ],
"format": 98067,
"index_count": 132,
"material": SubResource( 1 ),
"name": "Material",
"primitive": 4,
"skeleton_aabb": [ ],
"vertex_count": 65
}
[sub_resource type="BoxShape" id=3]
[node name="Cubio" type="KinematicBody"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -3, 4, 8 )
script = ExtResource( 1 )
[node name="CubeMesh" type="MeshInstance" parent="."]
_import_path = NodePath("cube-col")
transform = Transform( 0.95, 0, 0, 0, 0.95, 0, 0, 0, 0.95, 0, 0, 0 )
mesh = SubResource( 2 )
material/0 = null
[node name="CollisionShape" type="CollisionShape" parent="."]
transform = Transform( 0.95, 0, 0, 0, -4.15258e-08, -0.95, 0, 0.95, -4.15258e-08, 0, 0, 0 )
shape = SubResource( 3 )
[node name="Target" type="Spatial" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.85165, 0 )
[node name="Camera" type="Camera" parent="Target"]
transform = Transform( 0.00880322, -0.305732, 0.952077, 0.00282677, 0.952118, 0.305719, -0.999957, 0, 0.00924594, 4.23538, 1.00622, 0.120926 )
fov = 74.0
near = 0.1
script = ExtResource( 3 )
[node name="WinText" type="CenterContainer" parent="."]
visible = false
anchor_right = 1.0
margin_bottom = 100.0
[node name="Holder" type="Control" parent="WinText"]
margin_left = 512.0
margin_top = 50.0
margin_right = 512.0
margin_bottom = 50.0
[node name="TextLabel" type="Label" parent="WinText/Holder"]
margin_left = -354.0
margin_bottom = 14.0
rect_scale = Vector2( 2, 2 )
text = "Thank You, Cubio! But the Princess is in Another Demo!"
align = 1
valign = 1

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 17 KiB

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@@ -0,0 +1,9 @@
[gd_resource type="SpatialMaterial" load_steps=2 format=2]
[ext_resource path="res://models/white_wood.png" type="Texture" id=1]
[resource]
resource_name = "Material"
albedo_color = Color( 0.5, 0.25, 1, 1 )
albedo_texture = ExtResource( 1 )
roughness = 0.75

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,8 @@
[gd_resource type="SpatialMaterial" load_steps=2 format=2]
[ext_resource path="res://models/white_wood.png" type="Texture" id=1]
[resource]
resource_name = "Material"
albedo_texture = ExtResource( 1 )
roughness = 0.75

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 KiB

View File

@@ -2,8 +2,8 @@
importer="texture"
type="StreamTexture"
path.s3tc="res://.import/white_wood.png-6895acd60ce97b4315494d2be377c357.s3tc.stex"
path.etc2="res://.import/white_wood.png-6895acd60ce97b4315494d2be377c357.etc2.stex"
path.s3tc="res://.import/white_wood.png-821b7bf9b3881778c9bff1c965d8a87c.s3tc.stex"
path.etc2="res://.import/white_wood.png-821b7bf9b3881778c9bff1c965d8a87c.etc2.stex"
metadata={
"imported_formats": [ "s3tc", "etc2" ],
"vram_texture": true
@@ -11,8 +11,8 @@ metadata={
[deps]
source_file="res://white_wood.png"
dest_files=[ "res://.import/white_wood.png-6895acd60ce97b4315494d2be377c357.s3tc.stex", "res://.import/white_wood.png-6895acd60ce97b4315494d2be377c357.etc2.stex" ]
source_file="res://models/white_wood.png"
dest_files=[ "res://.import/white_wood.png-821b7bf9b3881778c9bff1c965d8a87c.s3tc.stex", "res://.import/white_wood.png-821b7bf9b3881778c9bff1c965d8a87c.etc2.stex" ]
[params]

View File

@@ -1,10 +1,9 @@
extends KinematicBody
const MAX_SPEED = 5
const JUMP_SPEED = 7
const MAX_SPEED = 3
const JUMP_SPEED = 5
const ACCELERATION = 2
const DECELERATION = 4
const MAX_SLOPE_ANGLE = 30
onready var gravity = -ProjectSettings.get_setting("physics/3d/default_gravity")
var velocity: Vector3

View File

@@ -0,0 +1,51 @@
[gd_scene load_steps=6 format=2]
[ext_resource path="res://player/cubio.gd" type="Script" id=1]
[ext_resource path="res://models/cube.mesh" type="ArrayMesh" id=2]
[ext_resource path="res://player/follow_camera.gd" type="Script" id=3]
[ext_resource path="res://models/white_cube_material.tres" type="Material" id=4]
[sub_resource type="BoxShape" id=1]
margin = 0.001
extents = Vector3( 0.45, 0.45, 0.45 )
[node name="Cubio" type="KinematicBody"]
script = ExtResource( 1 )
[node name="CubeMesh" type="MeshInstance" parent="."]
_import_path = NodePath("cube-col")
transform = Transform( 0.9, 0, 0, 0, 0.9, 0, 0, 0, 0.9, 0, 0, 0 )
mesh = ExtResource( 2 )
material/0 = ExtResource( 4 )
[node name="CollisionShape" type="CollisionShape" parent="."]
shape = SubResource( 1 )
[node name="Target" type="Spatial" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.8, 0 )
[node name="Camera" type="Camera" parent="Target"]
transform = Transform( 0.34202, -0.321394, 0.883022, 0, 0.939693, 0.34202, -0.939693, -0.116978, 0.321394, 2, 0.5, 0.913381 )
fov = 74.0
near = 0.1
far = 50.0
script = ExtResource( 3 )
[node name="WinText" type="CenterContainer" parent="."]
visible = false
anchor_right = 1.0
margin_bottom = 100.0
[node name="Holder" type="Control" parent="WinText"]
margin_left = 512.0
margin_top = 50.0
margin_right = 512.0
margin_bottom = 50.0
[node name="TextLabel" type="Label" parent="WinText/Holder"]
margin_left = -354.0
margin_bottom = 14.0
rect_scale = Vector2( 2, 2 )
text = "Thank You, Cubio! But the Princess is in Another Demo!"
align = 1
valign = 1

View File

@@ -4,7 +4,7 @@ extends Camera
# Member variables
var collision_exception = []
export var min_distance = 0.5
export var max_distance = 5.5
export var max_distance = 3.0
export var angle_v_adjust = 0.0
var max_height = 2.0
var min_height = 0

View File

@@ -78,6 +78,10 @@ exit={
]
}
[physics]
common/physics_fps=120
[rasterizer]
shadow_filter=3

View File

@@ -1,54 +0,0 @@
[gd_scene load_steps=4 format=2]
[sub_resource type="SpatialMaterial" id=1]
resource_name = "Material"
params_diffuse_mode = 1
roughness = 0.0
[sub_resource type="ArrayMesh" id=2]
surfaces/0 = {
"aabb": AABB( -1, -1, -1, 2, 2, 2 ),
"array_data": PoolByteArray( 147, 59, 147, 59, 255, 187, 0, 60, 43, 43, 145, 0, 201, 59, 194, 38, 147, 59, 147, 187, 255, 187, 0, 60, 43, 213, 145, 0, 201, 59, 201, 59, 147, 187, 147, 187, 0, 188, 0, 60, 213, 213, 145, 0, 194, 38, 201, 59, 147, 187, 147, 59, 0, 188, 0, 60, 213, 43, 145, 0, 194, 38, 194, 38, 147, 59, 147, 187, 0, 60, 0, 60, 43, 213, 111, 0, 201, 59, 201, 59, 147, 59, 147, 59, 0, 60, 0, 60, 43, 43, 111, 0, 201, 59, 194, 38, 147, 187, 147, 59, 255, 59, 0, 60, 213, 43, 111, 0, 194, 38, 194, 38, 147, 187, 147, 187, 255, 59, 0, 60, 213, 213, 111, 0, 194, 38, 201, 59, 0, 188, 147, 187, 147, 59, 0, 60, 145, 213, 43, 0, 194, 38, 201, 59, 0, 188, 147, 59, 147, 59, 0, 60, 145, 43, 43, 0, 194, 38, 194, 38, 255, 187, 147, 59, 147, 187, 0, 60, 145, 43, 213, 0, 201, 59, 194, 38, 255, 187, 147, 187, 147, 187, 0, 60, 145, 213, 213, 0, 201, 59, 201, 59, 147, 59, 0, 60, 147, 187, 0, 60, 43, 111, 213, 0, 201, 59, 194, 38, 147, 187, 0, 60, 147, 187, 0, 60, 213, 111, 213, 0, 194, 38, 194, 38, 147, 187, 0, 60, 147, 59, 0, 60, 213, 111, 43, 0, 194, 38, 201, 59, 147, 59, 0, 60, 147, 59, 0, 60, 43, 111, 43, 0, 201, 59, 201, 59, 0, 60, 147, 187, 147, 187, 0, 60, 111, 213, 213, 0, 201, 59, 201, 59, 0, 60, 147, 59, 147, 187, 0, 60, 111, 43, 213, 0, 201, 59, 194, 38, 255, 59, 147, 59, 147, 59, 0, 60, 111, 43, 43, 0, 194, 38, 194, 38, 0, 60, 147, 187, 147, 59, 0, 60, 111, 213, 43, 0, 194, 38, 201, 59, 147, 59, 147, 187, 255, 187, 0, 60, 43, 213, 145, 0, 201, 59, 0, 60, 0, 60, 147, 187, 147, 187, 0, 60, 111, 213, 213, 0, 0, 60, 27, 60, 147, 59, 0, 188, 147, 187, 0, 60, 43, 145, 213, 0, 201, 59, 27, 60, 147, 59, 0, 188, 147, 59, 0, 60, 43, 145, 43, 0, 201, 59, 201, 59, 0, 60, 147, 187, 147, 59, 0, 60, 111, 213, 43, 0, 0, 60, 201, 59, 147, 59, 147, 187, 0, 60, 0, 60, 43, 213, 111, 0, 201, 59, 0, 60, 147, 187, 0, 188, 147, 59, 0, 60, 213, 145, 43, 0, 194, 38, 201, 59, 147, 187, 147, 187, 255, 59, 0, 60, 213, 213, 111, 0, 194, 38, 255, 59, 0, 188, 147, 187, 147, 59, 0, 60, 145, 213, 43, 0, 0, 0, 201, 59, 255, 187, 147, 187, 147, 187, 0, 60, 145, 213, 213, 0, 0, 0, 194, 38, 147, 187, 147, 187, 0, 188, 0, 60, 213, 213, 145, 0, 194, 38, 0, 0, 147, 187, 0, 188, 147, 187, 0, 60, 213, 145, 213, 0, 194, 38, 194, 38, 0, 60, 147, 59, 147, 187, 0, 60, 111, 43, 213, 0, 0, 0, 194, 38, 147, 59, 147, 59, 255, 187, 0, 60, 43, 43, 145, 0, 194, 166, 0, 0, 147, 59, 0, 60, 147, 187, 0, 60, 43, 111, 213, 0, 194, 166, 194, 38, 147, 59, 0, 60, 147, 59, 0, 60, 43, 111, 43, 0, 201, 59, 0, 60, 147, 59, 147, 59, 0, 60, 0, 60, 43, 43, 111, 0, 201, 59, 27, 60, 255, 59, 147, 59, 147, 59, 0, 60, 111, 43, 43, 0, 255, 59, 27, 60, 0, 188, 147, 59, 147, 59, 0, 60, 145, 43, 43, 0, 0, 0, 201, 59, 147, 187, 147, 59, 255, 59, 0, 60, 213, 43, 111, 0, 194, 38, 255, 59, 147, 187, 147, 59, 0, 188, 0, 60, 213, 43, 145, 0, 194, 38, 0, 60, 255, 187, 147, 59, 147, 187, 0, 60, 145, 43, 213, 0, 0, 0, 27, 60, 147, 187, 0, 60, 147, 187, 0, 60, 213, 111, 213, 0, 194, 38, 27, 60, 0, 60, 147, 187, 147, 187, 0, 60, 111, 213, 213, 0, 0, 0, 194, 38, 0, 60, 147, 187, 147, 59, 0, 60, 111, 213, 43, 0, 0, 0, 201, 59, 147, 59, 0, 188, 147, 59, 0, 60, 43, 145, 43, 0, 194, 166, 201, 59, 147, 59, 0, 188, 147, 187, 0, 60, 43, 145, 213, 0, 194, 166, 194, 38, 147, 59, 147, 187, 255, 187, 0, 60, 43, 213, 145, 0, 201, 59, 0, 0, 147, 59, 0, 188, 147, 187, 0, 60, 43, 145, 213, 0, 201, 59, 194, 38, 0, 60, 147, 59, 147, 187, 0, 60, 111, 43, 213, 0, 0, 60, 194, 38, 0, 60, 147, 187, 147, 187, 0, 60, 111, 213, 213, 0, 0, 60, 201, 59, 255, 59, 147, 59, 147, 59, 0, 60, 111, 43, 43, 0, 0, 0, 194, 38, 147, 59, 147, 59, 0, 60, 0, 60, 43, 43, 111, 0, 194, 166, 194, 38, 147, 59, 147, 187, 0, 60, 0, 60, 43, 213, 111, 0, 194, 166, 201, 59, 147, 187, 0, 188, 147, 187, 0, 60, 213, 145, 213, 0, 201, 59, 0, 60, 147, 187, 0, 188, 147, 59, 0, 60, 213, 145, 43, 0, 194, 38, 0, 60, 0, 188, 147, 59, 147, 59, 0, 60, 145, 43, 43, 0, 0, 0, 194, 38, 0, 188, 147, 187, 147, 59, 0, 60, 145, 213, 43, 0, 0, 0, 201, 59, 255, 187, 147, 187, 147, 187, 0, 60, 145, 213, 213, 0, 0, 0, 201, 59, 255, 187, 147, 59, 147, 187, 0, 60, 145, 43, 213, 0, 0, 0, 194, 38, 255, 59, 147, 59, 147, 59, 0, 60, 111, 43, 43, 0, 255, 59, 201, 59, 0, 60, 147, 59, 147, 187, 0, 60, 111, 43, 213, 0, 0, 60, 194, 38, 147, 59, 147, 59, 255, 187, 0, 60, 43, 43, 145, 0, 201, 59, 0, 0, 147, 187, 147, 59, 0, 188, 0, 60, 213, 43, 145, 0, 194, 38, 0, 0, 147, 59, 147, 59, 0, 60, 0, 60, 43, 43, 111, 0, 201, 59, 0, 60 ),
"array_index_data": PoolByteArray( 0, 0, 2, 0, 1, 0, 0, 0, 3, 0, 2, 0, 4, 0, 6, 0, 5, 0, 4, 0, 7, 0, 6, 0, 8, 0, 10, 0, 9, 0, 8, 0, 11, 0, 10, 0, 12, 0, 14, 0, 13, 0, 12, 0, 15, 0, 14, 0, 16, 0, 18, 0, 17, 0, 16, 0, 19, 0, 18, 0, 20, 0, 22, 0, 21, 0, 23, 0, 25, 0, 24, 0, 26, 0, 28, 0, 27, 0, 29, 0, 31, 0, 30, 0, 32, 0, 34, 0, 33, 0, 35, 0, 37, 0, 36, 0, 14, 0, 39, 0, 38, 0, 40, 0, 42, 0, 41, 0, 43, 0, 45, 0, 44, 0, 43, 0, 46, 0, 45, 0, 30, 0, 48, 0, 47, 0, 30, 0, 31, 0, 48, 0, 1, 0, 49, 0, 0, 0, 1, 0, 50, 0, 49, 0, 25, 0, 26, 0, 27, 0, 25, 0, 23, 0, 26, 0, 44, 0, 52, 0, 51, 0, 44, 0, 53, 0, 52, 0, 8, 0, 54, 0, 11, 0, 8, 0, 55, 0, 54, 0, 7, 0, 56, 0, 6, 0, 7, 0, 57, 0, 56, 0, 58, 0, 3, 0, 59, 0, 58, 0, 2, 0, 3, 0, 12, 0, 60, 0, 15, 0, 12, 0, 61, 0, 60, 0, 62, 0, 13, 0, 63, 0, 62, 0, 12, 0, 13, 0, 15, 0, 39, 0, 14, 0, 15, 0, 64, 0, 39, 0, 14, 0, 59, 0, 13, 0, 14, 0, 38, 0, 59, 0, 48, 0, 26, 0, 23, 0, 48, 0, 31, 0, 26, 0 ),
"blend_shape_data": [ ],
"format": 98067,
"index_count": 132,
"material": SubResource( 1 ),
"name": "Material",
"primitive": 4,
"skeleton_aabb": [ ],
"vertex_count": 65
}
[sub_resource type="ConvexPolygonShape" id=3]
points = PoolVector3Array( 0.946777, 0.946777, -0.999512, 0.946777, -0.946777, -0.999512, -0.946777, -0.946777, -1, -0.946777, 0.946777, -1, 0.946777, -0.946777, 1, 0.946777, 0.946777, 1, -0.946777, 0.946777, 0.999512, -0.946777, -0.946777, 0.999512, -1, -0.946777, 0.946777, -1, 0.946777, 0.946777, -0.999512, 0.946777, -0.946777, -0.999512, -0.946777, -0.946777, 0.946777, 1, -0.946777, -0.946777, 1, -0.946777, -0.946777, 1, 0.946777, 0.946777, 1, 0.946777, 1, -0.946777, -0.946777, 1, 0.946777, -0.946777, 0.999512, 0.946777, 0.946777, 1, -0.946777, 0.946777, 0.946777, -0.946777, -0.999512, 1, -0.946777, -0.946777, 0.946777, -1, -0.946777, 0.946777, -1, 0.946777, 1, -0.946777, 0.946777, 0.946777, -0.946777, 1, -0.946777, -1, 0.946777, -0.946777, -0.946777, 0.999512, -1, -0.946777, 0.946777, -0.999512, -0.946777, -0.946777, -0.946777, -0.946777, -1, -0.946777, -1, -0.946777, 1, 0.946777, -0.946777, 0.946777, 0.946777, -0.999512, 0.946777, 1, -0.946777, 0.946777, 1, 0.946777, 0.946777, 0.946777, 1, 0.999512, 0.946777, 0.946777, -1, 0.946777, 0.946777, -0.946777, 0.946777, 0.999512, -0.946777, 0.946777, -1, -0.999512, 0.946777, -0.946777, -0.946777, 1, -0.946777, 1, -0.946777, -0.946777, 1, -0.946777, 0.946777, 0.946777, -1, 0.946777, 0.946777, -1, -0.946777, 0.946777, -0.946777, -0.999512, 0.946777, -1, -0.946777, 1, 0.946777, -0.946777, 1, -0.946777, -0.946777, 0.999512, 0.946777, 0.946777, 0.946777, 0.946777, 1, 0.946777, -0.946777, 1, -0.946777, -1, -0.946777, -0.946777, -1, 0.946777, -1, 0.946777, 0.946777, -1, -0.946777, 0.946777, -0.999512, -0.946777, -0.946777, -0.999512, 0.946777, -0.946777, 0.999512, 0.946777, 0.946777, 1, 0.946777, -0.946777, 0.946777, 0.946777, -0.999512, -0.946777, 0.946777, -1, 0.946777, 0.946777, 1 )
[node name="PurpleCube" type="Spatial"]
_import_path = NodePath(".")
__meta__ = {
"__editor_plugin_screen__": "3D"
}
[node name="Cube" type="MeshInstance" parent="."]
_import_path = NodePath("cube-col")
use_in_baked_light = true
mesh = SubResource( 2 )
material/0 = null
[node name="StaticBody" type="StaticBody" parent="Cube"]
[node name="CollisionShape" type="CollisionShape" parent="Cube/StaticBody"]
shape = SubResource( 3 )
[node name="Lamp" type="OmniLight" parent="."]
_import_path = NodePath("Lamp")
transform = Transform( -0.290865, -0.771101, 0.566393, -0.0551891, 0.604525, 0.794672, -0.955171, 0.199883, -0.218391, 4.07625, 5.90386, -1.00545 )
[node name="Camera" type="Camera" parent="."]
_import_path = NodePath("Camera")
transform = Transform( 0.685881, -0.31737, 0.654862, -0.0108168, 0.895343, 0.445245, -0.727634, -0.312469, 0.610666, 7.48113, 5.34367, 6.50764 )
fov = 49.1343
near = 0.1
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
_import_path = NodePath("AnimationPlayer")

Binary file not shown.

Before

Width:  |  Height:  |  Size: 470 KiB

View File

@@ -1,36 +0,0 @@
[remap]
importer="texture"
type="StreamTexture"
path.s3tc="res://.import/purple_wood.png-ae65a206e7a59edf759728c3bad04e56.s3tc.stex"
path.etc2="res://.import/purple_wood.png-ae65a206e7a59edf759728c3bad04e56.etc2.stex"
metadata={
"imported_formats": [ "s3tc", "etc2" ],
"vram_texture": true
}
[deps]
source_file="res://purple_wood.png"
dest_files=[ "res://.import/purple_wood.png-ae65a206e7a59edf759728c3bad04e56.s3tc.stex", "res://.import/purple_wood.png-ae65a206e7a59edf759728c3bad04e56.etc2.stex" ]
[params]
compress/mode=2
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=true
flags/filter=true
flags/mipmaps=true
flags/anisotropic=true
flags/srgb=1
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 287 KiB

After

Width:  |  Height:  |  Size: 287 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 158 KiB