Add Unity3D projects

This commit is contained in:
2024-03-09 19:25:59 +00:00
parent 1c71f24fab
commit 829289c881
4626 changed files with 441247 additions and 0 deletions

View File

@ -0,0 +1,53 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Asteroid : MonoBehaviour {
// inspector settings
public Rigidbody rigidBody;
//
// Use this for initialization
void Start () {
// randomise velocity
rigidBody.velocity = new Vector3(Random.Range(-10f,10f), 0f, Random.Range (-10f, 10f));
rigidBody.angularVelocity = new Vector3(Random.Range(-4f,4f), Random.Range (-4f, 4f), Random.Range (-4f, 4f));
}
public void SetScale(float min, float max) {
transform.localScale = new Vector3(Random.Range(min,max), Random.Range(min,max), Random.Range(min,max));
rigidBody.mass = transform.localScale.x * transform.localScale.y * transform.localScale.z;
}
void OnCollisionEnter(Collision collision) {
if (!collision.gameObject.name.Contains("asteroid")) {
Spaceship ss = collision.gameObject.GetComponent<Spaceship> ();
if (ss != null && ss.isInvulnerable)
return;
if (collision.gameObject.name.Contains("Bullet")) {
GameManager.currentScore = GameManager.currentScore + 10; // assuming same points no matter how big asteroid is
}
// we've collided with something other than another asteroid
Destroy(collision.gameObject); // if it's the player spaceship, the Spaceship scripts OnDestroy will look after re-creating it
Destroy(this.gameObject);
if (rigidBody.mass > 0.00015f) {
float minScale = rigidBody.mass * 50f;
float maxScale = minScale * 2f;
for (int i = 0; i < 3; i++) {
GameObject go = Instantiate (GameManager.instance.asteroidPrefab) as GameObject;
go.transform.position = transform.position;
go.GetComponent<Asteroid> ().SetScale (minScale, maxScale);
}
}
// if there are no more asteroids left, start next level
if (GameObject.FindGameObjectsWithTag("asteroid").Length == 0) {
GameManager.StartNextLevel();
}
}
}
}

View File

@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: ca2e8013bec9bae73b7c3214bd6b2ca3
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences:
- rigidBody: {fileID: -1148711965434020991, guid: 3007d9db2f40bc71ea3982b7f2b93476, type: 3}
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,20 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Bullet : MonoBehaviour {
// inspector settings
public Rigidbody rigid;
//
// Use this for initialization
void Start () {
rigid.velocity = transform.forward * 30f;
}
// Update is called once per frame
void Update () {
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 66c54d2dec5e344569378358c45897cf
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,220 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &3558448010611624820
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 8179320831557805377}
- component: {fileID: 8978547660396325194}
- component: {fileID: 4608545560995275735}
- component: {fileID: 6442821941161353758}
- component: {fileID: -8278683733607575642}
m_Layer: 0
m_Name: Bullet
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &8179320831557805377
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3558448010611624820}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -3.01, y: 8.374413, z: 10.5643015}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 1831986110452645960}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!54 &8978547660396325194
Rigidbody:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3558448010611624820}
serializedVersion: 4
m_Mass: 1
m_Drag: 0
m_AngularDrag: 0
m_CenterOfMass: {x: 0, y: 0, z: 0}
m_InertiaTensor: {x: 1, y: 1, z: 1}
m_InertiaRotation: {x: 0, y: 0, z: 0, w: 1}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_ImplicitCom: 1
m_ImplicitTensor: 1
m_UseGravity: 1
m_IsKinematic: 0
m_Interpolate: 0
m_Constraints: 116
m_CollisionDetection: 0
--- !u!65 &4608545560995275735
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3558448010611624820}
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_IsTrigger: 0
m_ProvidesContacts: 1
m_Enabled: 1
serializedVersion: 3
m_Size: {x: 1, y: 1, z: 1}
m_Center: {x: 0, y: 0, z: 0}
--- !u!114 &6442821941161353758
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3558448010611624820}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 66c54d2dec5e344569378358c45897cf, type: 3}
m_Name:
m_EditorClassIdentifier:
rigid: {fileID: 8978547660396325194}
--- !u!114 &-8278683733607575642
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3558448010611624820}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d0e7defa02a48ccf385505f5e4f73c65, type: 3}
m_Name:
m_EditorClassIdentifier:
rigidBody: {fileID: 8978547660396325194}
destroyWhenOffscreen: 1
--- !u!1 &7730596564766240900
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1831986110452645960}
- component: {fileID: 7879378370433845982}
- component: {fileID: 7577187806138327493}
- component: {fileID: 6472205554366339255}
m_Layer: 0
m_Name: Cylinder
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1831986110452645960
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7730596564766240900}
serializedVersion: 2
m_LocalRotation: {x: 0.7071068, y: 0, z: 0, w: 0.7071068}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 0.25, y: 0.25, z: 0.25}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 8179320831557805377}
m_LocalEulerAnglesHint: {x: 90, y: 0, z: 0}
--- !u!33 &7879378370433845982
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7730596564766240900}
m_Mesh: {fileID: 10206, guid: 0000000000000000e000000000000000, type: 0}
--- !u!23 &7577187806138327493
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7730596564766240900}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!136 &6472205554366339255
CapsuleCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7730596564766240900}
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_IsTrigger: 0
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 2
m_Radius: 0.5000001
m_Height: 2
m_Direction: 1
m_Center: {x: 0.000000059604645, y: 0, z: -0.00000008940697}

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: bb4347b32140395549ee22872f27c157
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,113 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &4836829746991029191
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 393057153134074416}
- component: {fileID: 2171034540588854294}
- component: {fileID: 1786151962114954930}
- component: {fileID: -8829016564753339518}
m_Layer: 0
m_Name: MiniAsteroid
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &393057153134074416
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4836829746991029191}
serializedVersion: 2
m_LocalRotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071068}
m_LocalPosition: {x: 17.408178, y: 0.075341985, z: -7.252756}
m_LocalScale: {x: 0.025, y: 0.025, z: 0.025}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!33 &2171034540588854294
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4836829746991029191}
m_Mesh: {fileID: -8978465599795454212, guid: cbe2b864a664e65a08a4a90cf2f09217, type: 3}
--- !u!23 &1786151962114954930
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4836829746991029191}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: -4910163530500726105, guid: cbe2b864a664e65a08a4a90cf2f09217, type: 3}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!54 &-8829016564753339518
Rigidbody:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4836829746991029191}
serializedVersion: 4
m_Mass: 1
m_Drag: 0
m_AngularDrag: 0
m_CenterOfMass: {x: 0, y: 0, z: 0}
m_InertiaTensor: {x: 1, y: 1, z: 1}
m_InertiaRotation: {x: 0, y: 0, z: 0, w: 1}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_ImplicitCom: 1
m_ImplicitTensor: 1
m_UseGravity: 1
m_IsKinematic: 1
m_Interpolate: 0
m_Constraints: 0
m_CollisionDetection: 0

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: b3a89fa1ca571d77aa3fe9c391b634de
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,432 @@
<?xml version="1.0" encoding="utf-8"?>
<COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.0">
<asset>
<contributor>
<author></author>
<authoring_tool>FBX COLLADA exporter</authoring_tool>
<comments></comments>
</contributor>
<created>2011-03-29T18:23:31Z</created>
<modified>2011-03-29T18:23:31Z</modified>
<revision></revision>
<title></title>
<subject></subject>
<keywords></keywords>
<unit meter="1.000000"/>
<up_axis>Y_UP</up_axis>
</asset>
<library_images>
<image id="Map__2-image" name="Map__2">
<init_from>asteroid1.jpg</init_from>
</image>
</library_images>
<library_materials>
<material id="_02___Default" name="_02___Default">
<instance_effect url="#_02___Default-fx"/>
</material>
</library_materials>
<library_effects>
<effect id="_02___Default-fx" name="_02___Default">
<profile_COMMON>
<technique sid="standard">
<phong>
<emission>
<color sid="emission">0.000000 0.000000 0.000000 1.000000</color>
</emission>
<ambient>
<color sid="ambient">0.588235 0.588235 0.588235 1.000000</color>
</ambient>
<diffuse>
<texture texture="Map__2-image" texcoord="CHANNEL0">
<extra>
<technique profile="MAYA">
<wrapU sid="wrapU0">TRUE</wrapU>
<wrapV sid="wrapV0">TRUE</wrapV>
<blend_mode>ADD</blend_mode>
</technique>
</extra>
</texture>
</diffuse>
<specular>
<color sid="specular">0.000000 0.000000 0.000000 1.000000</color>
</specular>
<shininess>
<float sid="shininess">2.000000</float>
</shininess>
<reflective>
<color sid="reflective">0.000000 0.000000 0.000000 1.000000</color>
</reflective>
<reflectivity>
<float sid="reflectivity">1.000000</float>
</reflectivity>
<transparent>
<color sid="transparent">1.000000 1.000000 1.000000 1.000000</color>
</transparent>
<transparency>
<float sid="transparency">0.000000</float>
</transparency>
</phong>
</technique>
</profile_COMMON>
</effect>
</library_effects>
<library_geometries>
<geometry id="Sphere01-lib" name="Sphere01Mesh">
<mesh>
<source id="Sphere01-lib-Position">
<float_array id="Sphere01-lib-Position-array" count="87">
0.000000 2.933583 28.060616
-0.000001 17.136948 20.423018
-5.802542 13.127665 15.231148
-11.663722 2.975798 15.231148
-9.628154 -8.568477 15.231148
-0.648304 -16.103464 15.231148
5.861180 -16.103464 20.423018
14.841030 -8.568477 20.423018
16.876600 2.975794 20.423018
11.015424 13.127658 20.423018
-0.000001 26.255325 4.629520
-11.663722 20.112747 -0.562349
-20.643574 7.484353 -5.707970
-18.212126 -13.127668 -0.562349
-3.766973 -24.671936 -0.562349
8.979849 -24.671936 4.629520
22.737778 -13.127667 4.629520
16.527693 4.559181 4.629520
16.876608 20.112740 4.629520
5.931790 23.088545 -13.330179
-1.475312 17.686852 -13.330179
-9.372061 4.009281 -13.330179
-6.629545 -11.544277 -13.330179
-1.964954 -21.696136 -13.330179
13.828537 -21.696136 -13.330179
19.995264 -11.544276 -13.330179
22.737780 4.009276 -13.330179
14.841040 17.686844 -13.330179
5.931791 -0.000000 -20.643642
</float_array>
<technique_common>
<accessor source="#Sphere01-lib-Position-array" count="29" stride="3">
<param name="X" type="float"/>
<param name="Y" type="float"/>
<param name="Z" type="float"/>
</accessor>
</technique_common>
</source>
<source id="Sphere01-lib-Normal0">
<float_array id="Sphere01-lib-Normal0-array" count="486">
-0.228682 0.047693 0.972332
-0.248055 0.672597 0.697196
-0.748457 0.411777 0.519858
-0.228682 0.047693 0.972332
-0.748457 0.411777 0.519858
-0.818351 0.149015 0.555064
-0.228682 0.047693 0.972332
-0.818351 0.149015 0.555064
-0.667101 -0.407790 0.623445
-0.228682 0.047693 0.972332
-0.667101 -0.407790 0.623445
-0.448070 -0.690501 0.567840
-0.228682 0.047693 0.972332
-0.448070 -0.690501 0.567840
0.006824 -0.677541 0.735453
-0.228682 0.047693 0.972332
0.006824 -0.677541 0.735453
0.685263 -0.291309 0.667498
-0.228682 0.047693 0.972332
0.685263 -0.291309 0.667498
0.841524 0.048529 0.538035
-0.228682 0.047693 0.972332
0.841524 0.048529 0.538035
0.465185 0.548358 0.694915
-0.228682 0.047693 0.972332
0.465185 0.548358 0.694915
-0.248055 0.672597 0.697196
-0.248055 0.672597 0.697196
-0.133100 0.978085 0.160109
-0.698949 0.711487 -0.072511
-0.248055 0.672597 0.697196
-0.698949 0.711487 -0.072511
-0.748457 0.411777 0.519858
-0.748457 0.411777 0.519858
-0.698949 0.711487 -0.072511
-0.907422 0.283072 -0.310573
-0.748457 0.411777 0.519858
-0.907422 0.283072 -0.310573
-0.818351 0.149015 0.555064
-0.818351 0.149015 0.555064
-0.907422 0.283072 -0.310573
-0.888817 -0.457993 -0.015706
-0.818351 0.149015 0.555064
-0.888817 -0.457993 -0.015706
-0.667101 -0.407790 0.623445
-0.667101 -0.407790 0.623445
-0.888817 -0.457993 -0.015706
-0.359945 -0.928249 0.093772
-0.667101 -0.407790 0.623445
-0.359945 -0.928249 0.093772
-0.448070 -0.690501 0.567840
-0.448070 -0.690501 0.567840
-0.359945 -0.928249 0.093772
0.275270 -0.931218 0.238873
-0.448070 -0.690501 0.567840
0.275270 -0.931218 0.238873
0.006824 -0.677541 0.735453
0.006824 -0.677541 0.735453
0.275270 -0.931218 0.238873
0.916654 -0.338340 0.212771
0.006824 -0.677541 0.735453
0.916654 -0.338340 0.212771
0.685263 -0.291309 0.667498
0.685263 -0.291309 0.667498
0.916654 -0.338340 0.212771
0.978638 0.156745 0.133037
0.685263 -0.291309 0.667498
0.978638 0.156745 0.133037
0.841524 0.048529 0.538035
0.841524 0.048529 0.538035
0.978638 0.156745 0.133037
0.790952 0.597552 0.131631
0.841524 0.048529 0.538035
0.790952 0.597552 0.131631
0.465185 0.548358 0.694915
0.465185 0.548358 0.694915
0.790952 0.597552 0.131631
-0.133100 0.978085 0.160109
0.465185 0.548358 0.694915
-0.133100 0.978085 0.160109
-0.248055 0.672597 0.697196
-0.133100 0.978085 0.160109
0.006659 0.798535 -0.601912
-0.460625 0.514703 -0.723122
-0.133100 0.978085 0.160109
-0.460625 0.514703 -0.723122
-0.698949 0.711487 -0.072511
-0.698949 0.711487 -0.072511
-0.460625 0.514703 -0.723122
-0.513614 0.141412 -0.846288
-0.698949 0.711487 -0.072511
-0.513614 0.141412 -0.846288
-0.907422 0.283072 -0.310573
-0.907422 0.283072 -0.310573
-0.513614 0.141412 -0.846288
-0.556298 -0.207010 -0.804785
-0.907422 0.283072 -0.310573
-0.556298 -0.207010 -0.804785
-0.888817 -0.457993 -0.015706
-0.888817 -0.457993 -0.015706
-0.556298 -0.207010 -0.804785
-0.314074 -0.678511 -0.664064
-0.888817 -0.457993 -0.015706
-0.314074 -0.678511 -0.664064
-0.359945 -0.928249 0.093772
-0.359945 -0.928249 0.093772
-0.314074 -0.678511 -0.664064
0.481002 -0.712299 -0.511143
-0.359945 -0.928249 0.093772
0.481002 -0.712299 -0.511143
0.275270 -0.931218 0.238873
0.275270 -0.931218 0.238873
0.481002 -0.712299 -0.511143
0.750712 -0.341286 -0.565646
0.275270 -0.931218 0.238873
0.750712 -0.341286 -0.565646
0.916654 -0.338340 0.212771
0.916654 -0.338340 0.212771
0.750712 -0.341286 -0.565646
0.874809 0.231053 -0.425821
0.916654 -0.338340 0.212771
0.874809 0.231053 -0.425821
0.978638 0.156745 0.133037
0.978638 0.156745 0.133037
0.874809 0.231053 -0.425821
0.648495 0.530867 -0.545559
0.978638 0.156745 0.133037
0.648495 0.530867 -0.545559
0.790952 0.597552 0.131631
0.790952 0.597552 0.131631
0.648495 0.530867 -0.545559
0.006659 0.798535 -0.601912
0.790952 0.597552 0.131631
0.006659 0.798535 -0.601912
-0.133100 0.978085 0.160109
-0.018336 0.012233 -0.999757
-0.460625 0.514703 -0.723122
0.006659 0.798535 -0.601912
-0.018336 0.012233 -0.999757
-0.513614 0.141412 -0.846288
-0.460625 0.514703 -0.723122
-0.018336 0.012233 -0.999757
-0.556298 -0.207010 -0.804785
-0.513614 0.141412 -0.846288
-0.018336 0.012233 -0.999757
-0.314074 -0.678511 -0.664064
-0.556298 -0.207010 -0.804785
-0.018336 0.012233 -0.999757
0.481002 -0.712299 -0.511143
-0.314074 -0.678511 -0.664064
-0.018336 0.012233 -0.999757
0.750712 -0.341286 -0.565646
0.481002 -0.712299 -0.511143
-0.018336 0.012233 -0.999757
0.874809 0.231053 -0.425821
0.750712 -0.341286 -0.565646
-0.018336 0.012233 -0.999757
0.648495 0.530867 -0.545559
0.874809 0.231053 -0.425821
-0.018336 0.012233 -0.999757
0.006659 0.798535 -0.601912
0.648495 0.530867 -0.545559
</float_array>
<technique_common>
<accessor source="#Sphere01-lib-Normal0-array" count="162" stride="3">
<param name="X" type="float"/>
<param name="Y" type="float"/>
<param name="Z" type="float"/>
</accessor>
</technique_common>
</source>
<source id="Sphere01-lib-UV0">
<float_array id="Sphere01-lib-UV0-array" count="100">
0.000000 1.000000
0.111111 1.000000
0.222222 1.000000
0.333333 1.000000
0.444444 1.000000
0.555556 1.000000
0.666667 1.000000
0.777778 1.000000
0.888889 1.000000
1.000000 1.000000
0.000000 0.777778
0.111111 0.777778
0.222222 0.777778
0.333333 0.777778
0.444444 0.777778
0.555556 0.777778
0.666667 0.777778
0.777778 0.777778
0.888889 0.777778
1.000000 0.777778
0.000000 0.555556
0.111111 0.555556
0.222222 0.555556
0.333333 0.555556
0.444444 0.555556
0.555556 0.555556
0.666667 0.555556
0.777778 0.555556
0.888889 0.555556
1.000000 0.555556
0.000000 0.333333
0.111111 0.333333
0.222222 0.333333
0.333333 0.333333
0.444444 0.333333
0.555556 0.333333
0.666667 0.333333
0.777778 0.333333
0.888889 0.333333
1.000000 0.333333
0.000000 0.111111
0.111111 0.111111
0.222222 0.111111
0.333333 0.111111
0.444444 0.111111
0.555556 0.111111
0.666667 0.111111
0.777778 0.111111
0.888889 0.111111
1.000000 0.111111
</float_array>
<technique_common>
<accessor source="#Sphere01-lib-UV0-array" count="50" stride="2">
<param name="S" type="float"/>
<param name="T" type="float"/>
</accessor>
</technique_common>
</source>
<vertices id="Sphere01-lib-Vertex">
<input semantic="POSITION" source="#Sphere01-lib-Position"/>
</vertices>
<polygons material="_02___Default" count="54">
<input semantic="VERTEX" offset="0" source="#Sphere01-lib-Vertex"/>
<input semantic="NORMAL" offset="1" source="#Sphere01-lib-Normal0"/>
<input semantic="TEXCOORD" offset="2" set="0" source="#Sphere01-lib-UV0"/>
<p>0 0 0 1 1 10 2 2 11</p>
<p>0 3 1 2 4 11 3 5 12</p>
<p>0 6 2 3 7 12 4 8 13</p>
<p>0 9 3 4 10 13 5 11 14</p>
<p>0 12 4 5 13 14 6 14 15</p>
<p>0 15 5 6 16 15 7 17 16</p>
<p>0 18 6 7 19 16 8 20 17</p>
<p>0 21 7 8 22 17 9 23 18</p>
<p>0 24 8 9 25 18 1 26 19</p>
<p>1 27 10 10 28 20 11 29 21</p>
<p>1 30 10 11 31 21 2 32 11</p>
<p>2 33 11 11 34 21 12 35 22</p>
<p>2 36 11 12 37 22 3 38 12</p>
<p>3 39 12 12 40 22 13 41 23</p>
<p>3 42 12 13 43 23 4 44 13</p>
<p>4 45 13 13 46 23 14 47 24</p>
<p>4 48 13 14 49 24 5 50 14</p>
<p>5 51 14 14 52 24 15 53 25</p>
<p>5 54 14 15 55 25 6 56 15</p>
<p>6 57 15 15 58 25 16 59 26</p>
<p>6 60 15 16 61 26 7 62 16</p>
<p>7 63 16 16 64 26 17 65 27</p>
<p>7 66 16 17 67 27 8 68 17</p>
<p>8 69 17 17 70 27 18 71 28</p>
<p>8 72 17 18 73 28 9 74 18</p>
<p>9 75 18 18 76 28 10 77 29</p>
<p>9 78 18 10 79 29 1 80 19</p>
<p>10 81 20 19 82 30 20 83 31</p>
<p>10 84 20 20 85 31 11 86 21</p>
<p>11 87 21 20 88 31 21 89 32</p>
<p>11 90 21 21 91 32 12 92 22</p>
<p>12 93 22 21 94 32 22 95 33</p>
<p>12 96 22 22 97 33 13 98 23</p>
<p>13 99 23 22 100 33 23 101 34</p>
<p>13 102 23 23 103 34 14 104 24</p>
<p>14 105 24 23 106 34 24 107 35</p>
<p>14 108 24 24 109 35 15 110 25</p>
<p>15 111 25 24 112 35 25 113 36</p>
<p>15 114 25 25 115 36 16 116 26</p>
<p>16 117 26 25 118 36 26 119 37</p>
<p>16 120 26 26 121 37 17 122 27</p>
<p>17 123 27 26 124 37 27 125 38</p>
<p>17 126 27 27 127 38 18 128 28</p>
<p>18 129 28 27 130 38 19 131 39</p>
<p>18 132 28 19 133 39 10 134 29</p>
<p>28 135 40 20 136 31 19 137 30</p>
<p>28 138 41 21 139 32 20 140 31</p>
<p>28 141 42 22 142 33 21 143 32</p>
<p>28 144 43 23 145 34 22 146 33</p>
<p>28 147 44 24 148 35 23 149 34</p>
<p>28 150 45 25 151 36 24 152 35</p>
<p>28 153 46 26 154 37 25 155 36</p>
<p>28 156 47 27 157 38 26 158 37</p>
<p>28 159 48 19 160 39 27 161 38</p>
</polygons>
</mesh>
</geometry>
</library_geometries>
<library_visual_scenes>
<visual_scene id="RootNode" name="RootNode">
<node id="Sphere01" name="Sphere01">
<matrix sid="matrix">1.000000 0.000000 0.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 -1.000000 0.000000 0.000000 0.000000 0.000000 0.000000 1.000000</matrix>
<instance_geometry url="#Sphere01-lib">
<bind_material>
<technique_common>
<instance_material symbol="_02___Default" target="#_02___Default"/>
</technique_common>
</bind_material>
</instance_geometry>
</node>
</visual_scene>
</library_visual_scenes>
<scene>
<instance_visual_scene url="#RootNode"/>
</scene>
</COLLADA>

View File

@ -0,0 +1,109 @@
fileFormatVersion: 2
guid: cbe2b864a664e65a08a4a90cf2f09217
ModelImporter:
serializedVersion: 22200
internalIDToNameTable: []
externalObjects: {}
materials:
materialImportMode: 2
materialName: 0
materialSearch: 1
materialLocation: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
removeConstantScaleCurves: 0
motionNodeName:
rigImportErrors:
rigImportWarnings:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 0
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
sortHierarchyByName: 1
importPhysicalCameras: 1
importVisibility: 1
importBlendShapes: 1
importCameras: 1
importLights: 1
nodeNameCollisionStrategy: 1
fileIdsGeneration: 2
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
keepQuads: 0
weldVertices: 1
bakeAxisConversion: 0
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
optimizeBones: 1
meshOptimizationFlags: -1
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVMarginMethod: 1
secondaryUVMinLightmapResolution: 40
secondaryUVMinObjectScale: 1
secondaryUVPackMargin: 4
useFileScale: 1
strictVertexDataChecks: 0
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
referencedClips: []
importAnimation: 1
humanDescription:
serializedVersion: 3
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 1
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 2
humanoidOversampling: 1
avatarSetup: 0
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
importBlendShapeDeformPercent: 1
remapMaterialsIfMaterialImportModeIsNone: 0
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

View File

@ -0,0 +1,140 @@
fileFormatVersion: 2
guid: 87138ce6dd77249bfb2e89ba4d0d1f29
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 0
wrapV: 0
wrapW: 0
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,179 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &7403127104882189301
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1580577290007040041}
- component: {fileID: 7373982358426546496}
- component: {fileID: 6638633915664101152}
- component: {fileID: -1148711965434020991}
- component: {fileID: -6833367486911763855}
- component: {fileID: 692361471123650453}
- component: {fileID: 4056739599950875764}
- component: {fileID: 3373474457426109638}
m_Layer: 0
m_Name: asteroid1
m_TagString: asteroid
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1580577290007040041
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7403127104882189301}
serializedVersion: 2
m_LocalRotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071068}
m_LocalPosition: {x: -0, y: 0, z: 0}
m_LocalScale: {x: 0.1, y: 0.1, z: 0.1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!33 &7373982358426546496
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7403127104882189301}
m_Mesh: {fileID: -8978465599795454212, guid: cbe2b864a664e65a08a4a90cf2f09217, type: 3}
--- !u!23 &6638633915664101152
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7403127104882189301}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: -4910163530500726105, guid: cbe2b864a664e65a08a4a90cf2f09217, type: 3}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!54 &-1148711965434020991
Rigidbody:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7403127104882189301}
serializedVersion: 4
m_Mass: 1
m_Drag: 0
m_AngularDrag: 0
m_CenterOfMass: {x: 0, y: 0, z: 0}
m_InertiaTensor: {x: 1, y: 1, z: 1}
m_InertiaRotation: {x: 0, y: 0, z: 0, w: 1}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_ImplicitCom: 1
m_ImplicitTensor: 1
m_UseGravity: 1
m_IsKinematic: 0
m_Interpolate: 0
m_Constraints: 4
m_CollisionDetection: 0
--- !u!114 &-6833367486911763855
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7403127104882189301}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ca2e8013bec9bae73b7c3214bd6b2ca3, type: 3}
m_Name:
m_EditorClassIdentifier:
rigidBody: {fileID: -1148711965434020991}
--- !u!135 &692361471123650453
SphereCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7403127104882189301}
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_IsTrigger: 0
m_ProvidesContacts: 1
m_Enabled: 1
serializedVersion: 3
m_Radius: 25.463636
m_Center: {x: -1.0471029, y: 0.7916948, z: 3.7084875}
--- !u!114 &4056739599950875764
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7403127104882189301}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d0e7defa02a48ccf385505f5e4f73c65, type: 3}
m_Name:
m_EditorClassIdentifier:
rigidBody: {fileID: -1148711965434020991}
destroyWhenOffscreen: 0
--- !u!114 &3373474457426109638
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7403127104882189301}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 03bebac93f7b4ee71ac69f542993246b, type: 3}
m_Name:
m_EditorClassIdentifier:
rigid: {fileID: -1148711965434020991}
speedLimit: 5

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 3007d9db2f40bc71ea3982b7f2b93476
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant: