sheepa
This commit is contained in:
BIN
assets/sheep/sheep.3ds
Normal file
BIN
assets/sheep/sheep.3ds
Normal file
Binary file not shown.
BIN
assets/sheep/sheep.fbx
Normal file
BIN
assets/sheep/sheep.fbx
Normal file
Binary file not shown.
38
assets/sheep/sheep.fbx.import
Normal file
38
assets/sheep/sheep.fbx.import
Normal file
@@ -0,0 +1,38 @@
|
||||
[remap]
|
||||
|
||||
importer="scene"
|
||||
importer_version=1
|
||||
type="PackedScene"
|
||||
uid="uid://cam0i2wndjifm"
|
||||
path="res://.godot/imported/sheep.fbx-e4a2a10d0c4495f93b5bd8eaa05e8ebf.scn"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/sheep/sheep.fbx"
|
||||
dest_files=["res://.godot/imported/sheep.fbx-e4a2a10d0c4495f93b5bd8eaa05e8ebf.scn"]
|
||||
|
||||
[params]
|
||||
|
||||
nodes/root_type=""
|
||||
nodes/root_name=""
|
||||
nodes/apply_root_scale=true
|
||||
nodes/root_scale=1.0
|
||||
nodes/import_as_skeleton_bones=false
|
||||
nodes/use_node_type_suffixes=true
|
||||
meshes/ensure_tangents=true
|
||||
meshes/generate_lods=true
|
||||
meshes/create_shadow_meshes=true
|
||||
meshes/light_baking=1
|
||||
meshes/lightmap_texel_size=0.2
|
||||
meshes/force_disable_compression=false
|
||||
skins/use_named_skins=true
|
||||
animation/import=true
|
||||
animation/fps=30
|
||||
animation/trimming=true
|
||||
animation/remove_immutable_tracks=true
|
||||
animation/import_rest_as_RESET=false
|
||||
import_script/path=""
|
||||
_subresources={}
|
||||
fbx/importer=0
|
||||
fbx/allow_geometry_helper_nodes=false
|
||||
fbx/embedded_image_handling=1
|
||||
52
assets/sheep/sheep.mtl
Normal file
52
assets/sheep/sheep.mtl
Normal file
@@ -0,0 +1,52 @@
|
||||
# Blender MTL File: 'sheep.blend'
|
||||
# Material Count: 5
|
||||
|
||||
newmtl black
|
||||
Ns 96.078431
|
||||
Ka 1.000000 1.000000 1.000000
|
||||
Kd 0.640000 0.640000 0.640000
|
||||
Ks 0.500000 0.500000 0.500000
|
||||
Ke 0.000000 0.000000 0.000000
|
||||
Ni 1.000000
|
||||
d 1.000000
|
||||
illum 2
|
||||
|
||||
newmtl brown
|
||||
Ns 96.078431
|
||||
Ka 1.000000 1.000000 1.000000
|
||||
Kd 0.640000 0.640000 0.640000
|
||||
Ks 0.500000 0.500000 0.500000
|
||||
Ke 0.000000 0.000000 0.000000
|
||||
Ni 1.000000
|
||||
d 1.000000
|
||||
illum 2
|
||||
|
||||
newmtl darkbrown
|
||||
Ns 96.078431
|
||||
Ka 1.000000 1.000000 1.000000
|
||||
Kd 0.640000 0.640000 0.640000
|
||||
Ks 0.500000 0.500000 0.500000
|
||||
Ke 0.000000 0.000000 0.000000
|
||||
Ni 1.000000
|
||||
d 1.000000
|
||||
illum 2
|
||||
|
||||
newmtl green
|
||||
Ns 96.078431
|
||||
Ka 1.000000 1.000000 1.000000
|
||||
Kd 0.640000 0.640000 0.640000
|
||||
Ks 0.500000 0.500000 0.500000
|
||||
Ke 0.000000 0.000000 0.000000
|
||||
Ni 1.000000
|
||||
d 1.000000
|
||||
illum 2
|
||||
|
||||
newmtl white
|
||||
Ns 96.078431
|
||||
Ka 1.000000 1.000000 1.000000
|
||||
Kd 1.000000 1.000000 1.000000
|
||||
Ks 0.500000 0.500000 0.500000
|
||||
Ke 0.000000 0.000000 0.000000
|
||||
Ni 1.000000
|
||||
d 1.000000
|
||||
illum 2
|
||||
2432
assets/sheep/sheep.obj
Normal file
2432
assets/sheep/sheep.obj
Normal file
File diff suppressed because it is too large
Load Diff
25
assets/sheep/sheep.obj.import
Normal file
25
assets/sheep/sheep.obj.import
Normal file
@@ -0,0 +1,25 @@
|
||||
[remap]
|
||||
|
||||
importer="wavefront_obj"
|
||||
importer_version=1
|
||||
type="Mesh"
|
||||
uid="uid://lpyt33avugll"
|
||||
path="res://.godot/imported/sheep.obj-58e4484a42bd0eaf421e59036e9ff41c.mesh"
|
||||
|
||||
[deps]
|
||||
|
||||
files=["res://.godot/imported/sheep.obj-58e4484a42bd0eaf421e59036e9ff41c.mesh"]
|
||||
|
||||
source_file="res://assets/sheep/sheep.obj"
|
||||
dest_files=["res://.godot/imported/sheep.obj-58e4484a42bd0eaf421e59036e9ff41c.mesh", "res://.godot/imported/sheep.obj-58e4484a42bd0eaf421e59036e9ff41c.mesh"]
|
||||
|
||||
[params]
|
||||
|
||||
generate_tangents=true
|
||||
generate_lods=true
|
||||
generate_shadow_mesh=true
|
||||
generate_lightmap_uv2=false
|
||||
generate_lightmap_uv2_texel_size=0.2
|
||||
scale_mesh=Vector3(1, 1, 1)
|
||||
offset_mesh=Vector3(0, 0, 0)
|
||||
force_disable_mesh_compression=false
|
||||
@@ -1,8 +1,9 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://c2kjfysadph28"]
|
||||
[gd_scene load_steps=5 format=3 uid="uid://c2kjfysadph28"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://bsd3o6sy0cdc5" path="res://icon.svg" id="1_uwrxv"]
|
||||
[ext_resource type="PackedScene" uid="uid://dsgumv1053wb2" path="res://scenes/player.tscn" id="2_lnu2h"]
|
||||
[ext_resource type="PackedScene" uid="uid://dfbqg6cxhbpng" path="res://scenes/ground.tscn" id="3_lbhrr"]
|
||||
[ext_resource type="PackedScene" uid="uid://c7aoap751lfgh" path="res://scenes/sheep.tscn" id="4_lbhrr"]
|
||||
|
||||
[node name="Game" type="Node3D"]
|
||||
|
||||
@@ -18,3 +19,6 @@ transform = Transform3D(100, 0, 0, 0, 100, 0, 0, 0, 100, 0, 0, 0)
|
||||
|
||||
[node name="Sun" type="DirectionalLight3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 7.72306, 0)
|
||||
|
||||
[node name="Sheep" parent="." instance=ExtResource("4_lbhrr")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.713965, -7.41454)
|
||||
|
||||
@@ -17,5 +17,6 @@ mesh = SubResource("CapsuleMesh_u8vuu")
|
||||
shape = SubResource("CapsuleShape3D_u8vuu")
|
||||
|
||||
[node name="Camera" type="Camera3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.560815, -0.298842)
|
||||
current = true
|
||||
script = ExtResource("2_g2els")
|
||||
|
||||
18
scenes/sheep.tscn
Normal file
18
scenes/sheep.tscn
Normal file
@@ -0,0 +1,18 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://c7aoap751lfgh"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bt82qpykbut2u" path="res://scripts/sheep.gd" id="1_gw4f6"]
|
||||
[ext_resource type="ArrayMesh" uid="uid://lpyt33avugll" path="res://assets/sheep/sheep.obj" id="1_t8l8v"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_t8l8v"]
|
||||
size = Vector3(1.54871, 1.2314, 1)
|
||||
|
||||
[node name="Sheep" type="CharacterBody3D"]
|
||||
script = ExtResource("1_gw4f6")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.530004, 0)
|
||||
mesh = ExtResource("1_t8l8v")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.074353, 0.0843018, 0)
|
||||
shape = SubResource("BoxShape3D_t8l8v")
|
||||
@@ -1,7 +1,7 @@
|
||||
extends CharacterBody3D
|
||||
|
||||
const SPEED = 5.0
|
||||
const JUMP_VELOCITY = 4.5
|
||||
const SPEED = 3.0
|
||||
const JUMP_VELOCITY = 2.5
|
||||
|
||||
func _physics_process(delta):
|
||||
# Add the gravity.
|
||||
|
||||
8
scripts/sheep.gd
Normal file
8
scripts/sheep.gd
Normal file
@@ -0,0 +1,8 @@
|
||||
extends CharacterBody3D
|
||||
|
||||
func _physics_process(delta):
|
||||
# Add the gravity.
|
||||
if not is_on_floor():
|
||||
velocity += get_gravity() * delta
|
||||
|
||||
move_and_slide()
|
||||
1
scripts/sheep.gd.uid
Normal file
1
scripts/sheep.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://bt82qpykbut2u
|
||||
Reference in New Issue
Block a user