mirror of
https://github.com/Steffo99/gravity-fusion.git
synced 2024-11-22 00:14:18 +00:00
Add gravity forces
This commit is contained in:
parent
cdfb760cf8
commit
edd04b6776
10 changed files with 744 additions and 0 deletions
8
Assets/Components/GameController.cs
Normal file
8
Assets/Components/GameController.cs
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class GameController : MonoBehaviour
|
||||||
|
{
|
||||||
|
public float gravitationConstant = 1;
|
||||||
|
}
|
11
Assets/Components/GameController.cs.meta
Normal file
11
Assets/Components/GameController.cs.meta
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 1d1d0978f263bec41af567152b121a2e
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
67
Assets/Components/Gravitation.cs
Normal file
67
Assets/Components/Gravitation.cs
Normal file
|
@ -0,0 +1,67 @@
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class Gravitation : MonoBehaviour
|
||||||
|
{
|
||||||
|
|
||||||
|
public static List<Gravitation> simulatedObjects = null;
|
||||||
|
|
||||||
|
protected new Rigidbody2D rigidbody;
|
||||||
|
|
||||||
|
protected GameController gameController;
|
||||||
|
|
||||||
|
public int positionInList;
|
||||||
|
|
||||||
|
protected Vector3 appliedForce;
|
||||||
|
|
||||||
|
protected float forcesIntensity;
|
||||||
|
|
||||||
|
protected float mass {
|
||||||
|
get {
|
||||||
|
return rigidbody.mass;
|
||||||
|
}
|
||||||
|
|
||||||
|
set {
|
||||||
|
rigidbody.mass = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Awake() {
|
||||||
|
if(simulatedObjects == null) {
|
||||||
|
simulatedObjects = new List<Gravitation>();
|
||||||
|
}
|
||||||
|
positionInList = simulatedObjects.Count;
|
||||||
|
simulatedObjects.Add(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Start()
|
||||||
|
{
|
||||||
|
rigidbody = GetComponent<Rigidbody2D>();
|
||||||
|
gameController = GameObject.Find("GameController").GetComponent<GameController>();
|
||||||
|
appliedForce = new Vector3(0f, 0f, 0f);
|
||||||
|
forcesIntensity = 0f;
|
||||||
|
}
|
||||||
|
|
||||||
|
// O(n²)
|
||||||
|
private void FixedUpdate()
|
||||||
|
{
|
||||||
|
foreach(Gravitation other in simulatedObjects) {
|
||||||
|
if(other.positionInList <= this.positionInList) continue;
|
||||||
|
float distance = Vector3.Distance(this.transform.position, other.transform.position);
|
||||||
|
float force = gameController.gravitationConstant * this.mass * other.mass / Mathf.Pow(distance, 2);
|
||||||
|
Vector3 direction = (other.transform.position - this.transform.position).normalized;
|
||||||
|
this.appliedForce += direction * force;
|
||||||
|
this.forcesIntensity += force;
|
||||||
|
other.appliedForce -= direction * force;
|
||||||
|
other.forcesIntensity += force;
|
||||||
|
}
|
||||||
|
rigidbody.AddForce(appliedForce);
|
||||||
|
if(forcesIntensity >= 5f) {
|
||||||
|
GetComponent<SpriteRenderer>().color = Color.yellow;
|
||||||
|
}
|
||||||
|
|
||||||
|
appliedForce = new Vector3(0, 0, 0);
|
||||||
|
forcesIntensity = 0f;
|
||||||
|
}
|
||||||
|
}
|
11
Assets/Components/Gravitation.cs.meta
Normal file
11
Assets/Components/Gravitation.cs.meta
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: d16f17bda197c324f8b088f106c66c5c
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
|
@ -9,6 +9,7 @@ GameObject:
|
||||||
serializedVersion: 6
|
serializedVersion: 6
|
||||||
m_Component:
|
m_Component:
|
||||||
- component: {fileID: 9012813807232547518}
|
- component: {fileID: 9012813807232547518}
|
||||||
|
- component: {fileID: 4937878819460165300}
|
||||||
m_Layer: 0
|
m_Layer: 0
|
||||||
m_Name: GameController
|
m_Name: GameController
|
||||||
m_TagString: GameController
|
m_TagString: GameController
|
||||||
|
@ -30,3 +31,15 @@ Transform:
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_RootOrder: 0
|
m_RootOrder: 0
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!114 &4937878819460165300
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4669070901862137127}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 1d1d0978f263bec41af567152b121a2e, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
|
136
Assets/Prefabs/Gravitation Object.prefab
Normal file
136
Assets/Prefabs/Gravitation Object.prefab
Normal file
|
@ -0,0 +1,136 @@
|
||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &5473375028011702754
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 5473375028011702783}
|
||||||
|
- component: {fileID: 5473375028011702782}
|
||||||
|
- component: {fileID: 5473375028011702753}
|
||||||
|
- component: {fileID: 5473375028011702752}
|
||||||
|
- component: {fileID: 5473375028011702755}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Gravitation Object
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &5473375028011702783
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5473375028011702754}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: -2, y: 0.88, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!50 &5473375028011702782
|
||||||
|
Rigidbody2D:
|
||||||
|
serializedVersion: 4
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5473375028011702754}
|
||||||
|
m_BodyType: 0
|
||||||
|
m_Simulated: 1
|
||||||
|
m_UseFullKinematicContacts: 0
|
||||||
|
m_UseAutoMass: 1
|
||||||
|
m_Mass: 0.7853982
|
||||||
|
m_LinearDrag: 0
|
||||||
|
m_AngularDrag: 0.05
|
||||||
|
m_GravityScale: 0
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_Interpolate: 0
|
||||||
|
m_SleepingMode: 1
|
||||||
|
m_CollisionDetection: 0
|
||||||
|
m_Constraints: 0
|
||||||
|
--- !u!58 &5473375028011702753
|
||||||
|
CircleCollider2D:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5473375028011702754}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_Density: 1
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_UsedByEffector: 0
|
||||||
|
m_UsedByComposite: 0
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Radius: 0.5
|
||||||
|
--- !u!212 &5473375028011702752
|
||||||
|
SpriteRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5473375028011702754}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 0
|
||||||
|
m_ReceiveShadows: 0
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 1
|
||||||
|
m_ReflectionProbeUsage: 1
|
||||||
|
m_RayTracingMode: 0
|
||||||
|
m_RenderingLayerMask: 1
|
||||||
|
m_RendererPriority: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 10754, 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: 0
|
||||||
|
m_MinimumChartSize: 4
|
||||||
|
m_AutoUVMaxDistance: 0.5
|
||||||
|
m_AutoUVMaxAngle: 89
|
||||||
|
m_LightmapParameters: {fileID: 0}
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingLayer: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
m_Sprite: {fileID: 21300000, guid: d8cf31929ca287542bdc219ec19f002e, type: 3}
|
||||||
|
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_FlipX: 0
|
||||||
|
m_FlipY: 0
|
||||||
|
m_DrawMode: 0
|
||||||
|
m_Size: {x: 1, y: 1}
|
||||||
|
m_AdaptiveModeThreshold: 0.5
|
||||||
|
m_SpriteTileMode: 0
|
||||||
|
m_WasSpriteAssigned: 1
|
||||||
|
m_MaskInteraction: 0
|
||||||
|
m_SpriteSortPoint: 0
|
||||||
|
--- !u!114 &5473375028011702755
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5473375028011702754}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: d16f17bda197c324f8b088f106c66c5c, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
positionInList: 0
|
7
Assets/Prefabs/Gravitation Object.prefab.meta
Normal file
7
Assets/Prefabs/Gravitation Object.prefab.meta
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: e73d8e05bd7498c4a80a63094f4594a8
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
|
@ -121,6 +121,140 @@ NavMeshSettings:
|
||||||
debug:
|
debug:
|
||||||
m_Flags: 0
|
m_Flags: 0
|
||||||
m_NavMeshData: {fileID: 0}
|
m_NavMeshData: {fileID: 0}
|
||||||
|
--- !u!1 &1005736364
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 1005736369}
|
||||||
|
- component: {fileID: 1005736368}
|
||||||
|
- component: {fileID: 1005736367}
|
||||||
|
- component: {fileID: 1005736366}
|
||||||
|
- component: {fileID: 1005736365}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Gravitation Object
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!114 &1005736365
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1005736364}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: d16f17bda197c324f8b088f106c66c5c, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
positionInList: 0
|
||||||
|
--- !u!212 &1005736366
|
||||||
|
SpriteRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1005736364}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 0
|
||||||
|
m_ReceiveShadows: 0
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 1
|
||||||
|
m_ReflectionProbeUsage: 1
|
||||||
|
m_RayTracingMode: 0
|
||||||
|
m_RenderingLayerMask: 1
|
||||||
|
m_RendererPriority: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 10754, 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: 0
|
||||||
|
m_MinimumChartSize: 4
|
||||||
|
m_AutoUVMaxDistance: 0.5
|
||||||
|
m_AutoUVMaxAngle: 89
|
||||||
|
m_LightmapParameters: {fileID: 0}
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingLayer: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
m_Sprite: {fileID: 21300000, guid: d8cf31929ca287542bdc219ec19f002e, type: 3}
|
||||||
|
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_FlipX: 0
|
||||||
|
m_FlipY: 0
|
||||||
|
m_DrawMode: 0
|
||||||
|
m_Size: {x: 1, y: 1}
|
||||||
|
m_AdaptiveModeThreshold: 0.5
|
||||||
|
m_SpriteTileMode: 0
|
||||||
|
m_WasSpriteAssigned: 1
|
||||||
|
m_MaskInteraction: 0
|
||||||
|
m_SpriteSortPoint: 0
|
||||||
|
--- !u!58 &1005736367
|
||||||
|
CircleCollider2D:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1005736364}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_Density: 1
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_UsedByEffector: 0
|
||||||
|
m_UsedByComposite: 0
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Radius: 0.5
|
||||||
|
--- !u!50 &1005736368
|
||||||
|
Rigidbody2D:
|
||||||
|
serializedVersion: 4
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1005736364}
|
||||||
|
m_BodyType: 0
|
||||||
|
m_Simulated: 1
|
||||||
|
m_UseFullKinematicContacts: 0
|
||||||
|
m_UseAutoMass: 1
|
||||||
|
m_Mass: 0.7853982
|
||||||
|
m_LinearDrag: 0
|
||||||
|
m_AngularDrag: 0.05
|
||||||
|
m_GravityScale: 0
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_Interpolate: 0
|
||||||
|
m_SleepingMode: 1
|
||||||
|
m_CollisionDetection: 0
|
||||||
|
m_Constraints: 0
|
||||||
|
--- !u!4 &1005736369
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1005736364}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: -15.4, y: 6.35, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 2
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
--- !u!1001 &1803533283597936005
|
--- !u!1001 &1803533283597936005
|
||||||
PrefabInstance:
|
PrefabInstance:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -188,6 +322,11 @@ PrefabInstance:
|
||||||
propertyPath: m_LocalEulerAnglesHint.z
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
value: 0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4937878819460165300, guid: bf08d766b6e86cf4a8773489143ab2d5,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: gravitationConstant
|
||||||
|
value: 2
|
||||||
|
objectReference: {fileID: 0}
|
||||||
m_RemovedComponents: []
|
m_RemovedComponents: []
|
||||||
m_SourcePrefab: {fileID: 100100000, guid: bf08d766b6e86cf4a8773489143ab2d5, type: 3}
|
m_SourcePrefab: {fileID: 100100000, guid: bf08d766b6e86cf4a8773489143ab2d5, type: 3}
|
||||||
--- !u!1001 &9221969453494073200
|
--- !u!1001 &9221969453494073200
|
||||||
|
@ -257,5 +396,10 @@ PrefabInstance:
|
||||||
propertyPath: m_LocalEulerAnglesHint.z
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
value: 0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 9221969453073420047, guid: 6baf9ec6ad712d940a83a3bf6ae3e6b1,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: orthographic size
|
||||||
|
value: 20
|
||||||
|
objectReference: {fileID: 0}
|
||||||
m_RemovedComponents: []
|
m_RemovedComponents: []
|
||||||
m_SourcePrefab: {fileID: 100100000, guid: 6baf9ec6ad712d940a83a3bf6ae3e6b1, type: 3}
|
m_SourcePrefab: {fileID: 100100000, guid: 6baf9ec6ad712d940a83a3bf6ae3e6b1, type: 3}
|
||||||
|
|
BIN
Assets/Sprites/Circle.png
Normal file
BIN
Assets/Sprites/Circle.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 78 B |
347
Assets/Sprites/Circle.png.meta
Normal file
347
Assets/Sprites/Circle.png.meta
Normal file
|
@ -0,0 +1,347 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: d8cf31929ca287542bdc219ec19f002e
|
||||||
|
TextureImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 10
|
||||||
|
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
|
||||||
|
isReadable: 0
|
||||||
|
streamingMipmaps: 0
|
||||||
|
streamingMipmapsPriority: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 6
|
||||||
|
cubemapConvolution: 0
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: 1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
filterMode: 0
|
||||||
|
aniso: 1
|
||||||
|
mipBias: 0
|
||||||
|
wrapU: 0
|
||||||
|
wrapV: 0
|
||||||
|
wrapW: 0
|
||||||
|
nPOTScale: 0
|
||||||
|
lightmap: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
spriteMode: 3
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot: {x: 0.5, y: 0.5}
|
||||||
|
spritePixelsToUnits: 4
|
||||||
|
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
spriteGenerateFallbackPhysicsShape: 1
|
||||||
|
alphaUsage: 1
|
||||||
|
alphaIsTransparency: 0
|
||||||
|
spriteTessellationDetail: -1
|
||||||
|
textureType: 8
|
||||||
|
textureShape: 1
|
||||||
|
singleChannelComponent: 0
|
||||||
|
maxTextureSizeSet: 0
|
||||||
|
compressionQualitySet: 0
|
||||||
|
textureFormatSet: 0
|
||||||
|
platformSettings:
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: DefaultTexturePlatform
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: 4
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline:
|
||||||
|
- - {x: 0, y: 2}
|
||||||
|
- {x: -0.09813535, y: 1.9975909}
|
||||||
|
- {x: -0.19603428, y: 1.9903694}
|
||||||
|
- {x: -0.29346094, y: 1.978353}
|
||||||
|
- {x: -0.39018065, y: 1.9615705}
|
||||||
|
- {x: -0.4859604, y: 1.9400625}
|
||||||
|
- {x: -0.5805693, y: 1.9138807}
|
||||||
|
- {x: -0.67377967, y: 1.8830881}
|
||||||
|
- {x: -0.76536685, y: 1.8477591}
|
||||||
|
- {x: -0.8551101, y: 1.8079786}
|
||||||
|
- {x: -0.9427934, y: 1.7638426}
|
||||||
|
- {x: -1.0282055, y: 1.7154572}
|
||||||
|
- {x: -1.1111405, y: 1.6629392}
|
||||||
|
- {x: -1.1913986, y: 1.606415}
|
||||||
|
- {x: -1.2687867, y: 1.5460209}
|
||||||
|
- {x: -1.343118, y: 1.4819021}
|
||||||
|
- {x: -1.4142137, y: 1.4142134}
|
||||||
|
- {x: -1.4819024, y: 1.3431177}
|
||||||
|
- {x: -1.5460211, y: 1.2687864}
|
||||||
|
- {x: -1.6064153, y: 1.1913984}
|
||||||
|
- {x: -1.6629394, y: 1.1111403}
|
||||||
|
- {x: -1.7154574, y: 1.0282052}
|
||||||
|
- {x: -1.7638427, y: 0.94279313}
|
||||||
|
- {x: -1.8079787, y: 0.8551098}
|
||||||
|
- {x: -1.8477592, y: 0.76536644}
|
||||||
|
- {x: -1.8830884, y: 0.6737792}
|
||||||
|
- {x: -1.9138808, y: 0.5805688}
|
||||||
|
- {x: -1.9400626, y: 0.48595977}
|
||||||
|
- {x: -1.9615707, y: 0.39018002}
|
||||||
|
- {x: -1.9783531, y: 0.29346028}
|
||||||
|
- {x: -1.9903696, y: 0.19603357}
|
||||||
|
- {x: -1.9975909, y: 0.098134585}
|
||||||
|
- {x: -2, y: -0.0000008026785}
|
||||||
|
- {x: -1.9975909, y: -0.09813619}
|
||||||
|
- {x: -1.9903693, y: -0.19603516}
|
||||||
|
- {x: -1.9783529, y: -0.29346186}
|
||||||
|
- {x: -1.9615704, y: -0.3901816}
|
||||||
|
- {x: -1.9400623, y: -0.48596132}
|
||||||
|
- {x: -1.9138803, y: -0.58057034}
|
||||||
|
- {x: -1.8830878, y: -0.67378074}
|
||||||
|
- {x: -1.8477587, y: -0.7653679}
|
||||||
|
- {x: -1.8079782, y: -0.855111}
|
||||||
|
- {x: -1.7638422, y: -0.9427941}
|
||||||
|
- {x: -1.715457, y: -1.028206}
|
||||||
|
- {x: -1.6629391, y: -1.1111407}
|
||||||
|
- {x: -1.606415, y: -1.1913987}
|
||||||
|
- {x: -1.546021, y: -1.2687865}
|
||||||
|
- {x: -1.4819025, y: -1.3431177}
|
||||||
|
- {x: -1.4142139, y: -1.4142132}
|
||||||
|
- {x: -1.3431184, y: -1.4819018}
|
||||||
|
- {x: -1.2687873, y: -1.5460204}
|
||||||
|
- {x: -1.1913995, y: -1.6064144}
|
||||||
|
- {x: -1.1111416, y: -1.6629385}
|
||||||
|
- {x: -1.0282067, y: -1.7154565}
|
||||||
|
- {x: -0.9427949, y: -1.7638417}
|
||||||
|
- {x: -0.85511184, y: -1.8079778}
|
||||||
|
- {x: -0.76536876, y: -1.8477583}
|
||||||
|
- {x: -0.6737818, y: -1.8830874}
|
||||||
|
- {x: -0.5805717, y: -1.91388}
|
||||||
|
- {x: -0.48596293, y: -1.9400618}
|
||||||
|
- {x: -0.39018345, y: -1.96157}
|
||||||
|
- {x: -0.29346398, y: -1.9783525}
|
||||||
|
- {x: -0.1960375, y: -1.9903691}
|
||||||
|
- {x: -0.09813879, y: -1.9975908}
|
||||||
|
- {x: -0.0000036398517, y: -2}
|
||||||
|
- {x: 0.098131515, y: -1.9975911}
|
||||||
|
- {x: 0.19603026, y: -1.9903698}
|
||||||
|
- {x: 0.29345676, y: -1.9783536}
|
||||||
|
- {x: 0.3901763, y: -1.9615715}
|
||||||
|
- {x: 0.48595586, y: -1.9400636}
|
||||||
|
- {x: 0.58056474, y: -1.913882}
|
||||||
|
- {x: 0.67377496, y: -1.8830898}
|
||||||
|
- {x: 0.765362, y: -1.847761}
|
||||||
|
- {x: 0.8551053, y: -1.8079809}
|
||||||
|
- {x: 0.94278854, y: -1.7638452}
|
||||||
|
- {x: 1.0282005, y: -1.7154602}
|
||||||
|
- {x: 1.1111355, y: -1.6629425}
|
||||||
|
- {x: 1.1913936, y: -1.6064187}
|
||||||
|
- {x: 1.2687817, y: -1.5460249}
|
||||||
|
- {x: 1.3431131, y: -1.4819067}
|
||||||
|
- {x: 1.4142088, y: -1.4142184}
|
||||||
|
- {x: 1.4818976, y: -1.3431231}
|
||||||
|
- {x: 1.5460167, y: -1.2687918}
|
||||||
|
- {x: 1.6064112, y: -1.1914037}
|
||||||
|
- {x: 1.6629357, y: -1.1111456}
|
||||||
|
- {x: 1.7154542, y: -1.0282105}
|
||||||
|
- {x: 1.7638398, y: -0.94279844}
|
||||||
|
- {x: 1.8079762, y: -0.855115}
|
||||||
|
- {x: 1.8477571, y: -0.76537156}
|
||||||
|
- {x: 1.8830866, y: -0.6737842}
|
||||||
|
- {x: 1.9138794, y: -0.5805737}
|
||||||
|
- {x: 1.9400615, y: -0.48596448}
|
||||||
|
- {x: 1.9615698, y: -0.39018452}
|
||||||
|
- {x: 1.9783524, y: -0.29346457}
|
||||||
|
- {x: 1.9903691, y: -0.19603767}
|
||||||
|
- {x: 1.9975908, y: -0.09813846}
|
||||||
|
- {x: 2, y: -0.0000028371733}
|
||||||
|
- {x: 1.997591, y: 0.0981328}
|
||||||
|
- {x: 1.9903697, y: 0.19603202}
|
||||||
|
- {x: 1.9783533, y: 0.29345897}
|
||||||
|
- {x: 1.9615709, y: 0.39017895}
|
||||||
|
- {x: 1.9400629, y: 0.48595896}
|
||||||
|
- {x: 1.9138811, y: 0.58056825}
|
||||||
|
- {x: 1.8830885, y: 0.6737789}
|
||||||
|
- {x: 1.8477592, y: 0.7653663}
|
||||||
|
- {x: 1.8079787, y: 0.8551099}
|
||||||
|
- {x: 1.7638426, y: 0.9427934}
|
||||||
|
- {x: 1.7154571, y: 1.0282056}
|
||||||
|
- {x: 1.662939, y: 1.1111408}
|
||||||
|
- {x: 1.6064146, y: 1.1913992}
|
||||||
|
- {x: 1.5460203, y: 1.2687874}
|
||||||
|
- {x: 1.4819014, y: 1.3431189}
|
||||||
|
- {x: 1.4142125, y: 1.4142147}
|
||||||
|
- {x: 1.3431165, y: 1.4819036}
|
||||||
|
- {x: 1.2687849, y: 1.5460223}
|
||||||
|
- {x: 1.1913966, y: 1.6064166}
|
||||||
|
- {x: 1.1111382, y: 1.6629407}
|
||||||
|
- {x: 1.0282029, y: 1.7154588}
|
||||||
|
- {x: 0.94279057, y: 1.7638441}
|
||||||
|
- {x: 0.85510695, y: 1.8079801}
|
||||||
|
- {x: 0.76536334, y: 1.8477606}
|
||||||
|
- {x: 0.67377585, y: 1.8830895}
|
||||||
|
- {x: 0.58056515, y: 1.9138819}
|
||||||
|
- {x: 0.48595583, y: 1.9400636}
|
||||||
|
- {x: 0.3901758, y: 1.9615716}
|
||||||
|
- {x: 0.29345578, y: 1.9783537}
|
||||||
|
- {x: 0.1960288, y: 1.99037}
|
||||||
|
- {x: 0.09812956, y: 1.9975911}
|
||||||
|
physicsShape:
|
||||||
|
- - {x: 0, y: 2}
|
||||||
|
- {x: -0.09813535, y: 1.9975909}
|
||||||
|
- {x: -0.19603428, y: 1.9903694}
|
||||||
|
- {x: -0.29346094, y: 1.978353}
|
||||||
|
- {x: -0.39018065, y: 1.9615705}
|
||||||
|
- {x: -0.4859604, y: 1.9400625}
|
||||||
|
- {x: -0.5805693, y: 1.9138807}
|
||||||
|
- {x: -0.67377967, y: 1.8830881}
|
||||||
|
- {x: -0.76536685, y: 1.8477591}
|
||||||
|
- {x: -0.8551101, y: 1.8079786}
|
||||||
|
- {x: -0.9427934, y: 1.7638426}
|
||||||
|
- {x: -1.0282055, y: 1.7154572}
|
||||||
|
- {x: -1.1111405, y: 1.6629392}
|
||||||
|
- {x: -1.1913986, y: 1.606415}
|
||||||
|
- {x: -1.2687867, y: 1.5460209}
|
||||||
|
- {x: -1.343118, y: 1.4819021}
|
||||||
|
- {x: -1.4142137, y: 1.4142134}
|
||||||
|
- {x: -1.4819024, y: 1.3431177}
|
||||||
|
- {x: -1.5460211, y: 1.2687864}
|
||||||
|
- {x: -1.6064153, y: 1.1913984}
|
||||||
|
- {x: -1.6629394, y: 1.1111403}
|
||||||
|
- {x: -1.7154574, y: 1.0282052}
|
||||||
|
- {x: -1.7638427, y: 0.94279313}
|
||||||
|
- {x: -1.8079787, y: 0.8551098}
|
||||||
|
- {x: -1.8477592, y: 0.76536644}
|
||||||
|
- {x: -1.8830884, y: 0.6737792}
|
||||||
|
- {x: -1.9138808, y: 0.5805688}
|
||||||
|
- {x: -1.9400626, y: 0.48595977}
|
||||||
|
- {x: -1.9615707, y: 0.39018002}
|
||||||
|
- {x: -1.9783531, y: 0.29346028}
|
||||||
|
- {x: -1.9903696, y: 0.19603357}
|
||||||
|
- {x: -1.9975909, y: 0.098134585}
|
||||||
|
- {x: -2, y: -0.0000008026785}
|
||||||
|
- {x: -1.9975909, y: -0.09813619}
|
||||||
|
- {x: -1.9903693, y: -0.19603516}
|
||||||
|
- {x: -1.9783529, y: -0.29346186}
|
||||||
|
- {x: -1.9615704, y: -0.3901816}
|
||||||
|
- {x: -1.9400623, y: -0.48596132}
|
||||||
|
- {x: -1.9138803, y: -0.58057034}
|
||||||
|
- {x: -1.8830878, y: -0.67378074}
|
||||||
|
- {x: -1.8477587, y: -0.7653679}
|
||||||
|
- {x: -1.8079782, y: -0.855111}
|
||||||
|
- {x: -1.7638422, y: -0.9427941}
|
||||||
|
- {x: -1.715457, y: -1.028206}
|
||||||
|
- {x: -1.6629391, y: -1.1111407}
|
||||||
|
- {x: -1.606415, y: -1.1913987}
|
||||||
|
- {x: -1.546021, y: -1.2687865}
|
||||||
|
- {x: -1.4819025, y: -1.3431177}
|
||||||
|
- {x: -1.4142139, y: -1.4142132}
|
||||||
|
- {x: -1.3431184, y: -1.4819018}
|
||||||
|
- {x: -1.2687873, y: -1.5460204}
|
||||||
|
- {x: -1.1913995, y: -1.6064144}
|
||||||
|
- {x: -1.1111416, y: -1.6629385}
|
||||||
|
- {x: -1.0282067, y: -1.7154565}
|
||||||
|
- {x: -0.9427949, y: -1.7638417}
|
||||||
|
- {x: -0.85511184, y: -1.8079778}
|
||||||
|
- {x: -0.76536876, y: -1.8477583}
|
||||||
|
- {x: -0.6737818, y: -1.8830874}
|
||||||
|
- {x: -0.5805717, y: -1.91388}
|
||||||
|
- {x: -0.48596293, y: -1.9400618}
|
||||||
|
- {x: -0.39018345, y: -1.96157}
|
||||||
|
- {x: -0.29346398, y: -1.9783525}
|
||||||
|
- {x: -0.1960375, y: -1.9903691}
|
||||||
|
- {x: -0.09813879, y: -1.9975908}
|
||||||
|
- {x: -0.0000036398517, y: -2}
|
||||||
|
- {x: 0.098131515, y: -1.9975911}
|
||||||
|
- {x: 0.19603026, y: -1.9903698}
|
||||||
|
- {x: 0.29345676, y: -1.9783536}
|
||||||
|
- {x: 0.3901763, y: -1.9615715}
|
||||||
|
- {x: 0.48595586, y: -1.9400636}
|
||||||
|
- {x: 0.58056474, y: -1.913882}
|
||||||
|
- {x: 0.67377496, y: -1.8830898}
|
||||||
|
- {x: 0.765362, y: -1.847761}
|
||||||
|
- {x: 0.8551053, y: -1.8079809}
|
||||||
|
- {x: 0.94278854, y: -1.7638452}
|
||||||
|
- {x: 1.0282005, y: -1.7154602}
|
||||||
|
- {x: 1.1111355, y: -1.6629425}
|
||||||
|
- {x: 1.1913936, y: -1.6064187}
|
||||||
|
- {x: 1.2687817, y: -1.5460249}
|
||||||
|
- {x: 1.3431131, y: -1.4819067}
|
||||||
|
- {x: 1.4142088, y: -1.4142184}
|
||||||
|
- {x: 1.4818976, y: -1.3431231}
|
||||||
|
- {x: 1.5460167, y: -1.2687918}
|
||||||
|
- {x: 1.6064112, y: -1.1914037}
|
||||||
|
- {x: 1.6629357, y: -1.1111456}
|
||||||
|
- {x: 1.7154542, y: -1.0282105}
|
||||||
|
- {x: 1.7638398, y: -0.94279844}
|
||||||
|
- {x: 1.8079762, y: -0.855115}
|
||||||
|
- {x: 1.8477571, y: -0.76537156}
|
||||||
|
- {x: 1.8830866, y: -0.6737842}
|
||||||
|
- {x: 1.9138794, y: -0.5805737}
|
||||||
|
- {x: 1.9400615, y: -0.48596448}
|
||||||
|
- {x: 1.9615698, y: -0.39018452}
|
||||||
|
- {x: 1.9783524, y: -0.29346457}
|
||||||
|
- {x: 1.9903691, y: -0.19603767}
|
||||||
|
- {x: 1.9975908, y: -0.09813846}
|
||||||
|
- {x: 2, y: -0.0000028371733}
|
||||||
|
- {x: 1.997591, y: 0.0981328}
|
||||||
|
- {x: 1.9903697, y: 0.19603202}
|
||||||
|
- {x: 1.9783533, y: 0.29345897}
|
||||||
|
- {x: 1.9615709, y: 0.39017895}
|
||||||
|
- {x: 1.9400629, y: 0.48595896}
|
||||||
|
- {x: 1.9138811, y: 0.58056825}
|
||||||
|
- {x: 1.8830885, y: 0.6737789}
|
||||||
|
- {x: 1.8477592, y: 0.7653663}
|
||||||
|
- {x: 1.8079787, y: 0.8551099}
|
||||||
|
- {x: 1.7638426, y: 0.9427934}
|
||||||
|
- {x: 1.7154571, y: 1.0282056}
|
||||||
|
- {x: 1.662939, y: 1.1111408}
|
||||||
|
- {x: 1.6064146, y: 1.1913992}
|
||||||
|
- {x: 1.5460203, y: 1.2687874}
|
||||||
|
- {x: 1.4819014, y: 1.3431189}
|
||||||
|
- {x: 1.4142125, y: 1.4142147}
|
||||||
|
- {x: 1.3431165, y: 1.4819036}
|
||||||
|
- {x: 1.2687849, y: 1.5460223}
|
||||||
|
- {x: 1.1913966, y: 1.6064166}
|
||||||
|
- {x: 1.1111382, y: 1.6629407}
|
||||||
|
- {x: 1.0282029, y: 1.7154588}
|
||||||
|
- {x: 0.94279057, y: 1.7638441}
|
||||||
|
- {x: 0.85510695, y: 1.8079801}
|
||||||
|
- {x: 0.76536334, y: 1.8477606}
|
||||||
|
- {x: 0.67377585, y: 1.8830895}
|
||||||
|
- {x: 0.58056515, y: 1.9138819}
|
||||||
|
- {x: 0.48595583, y: 1.9400636}
|
||||||
|
- {x: 0.3901758, y: 1.9615716}
|
||||||
|
- {x: 0.29345578, y: 1.9783537}
|
||||||
|
- {x: 0.1960288, y: 1.99037}
|
||||||
|
- {x: 0.09812956, y: 1.9975911}
|
||||||
|
bones: []
|
||||||
|
spriteID: 5e97eb03825dee720800000000000000
|
||||||
|
internalID: 0
|
||||||
|
vertices: []
|
||||||
|
indices:
|
||||||
|
edges: []
|
||||||
|
weights: []
|
||||||
|
secondaryTextures: []
|
||||||
|
spritePackingTag:
|
||||||
|
pSDRemoveMatte: 0
|
||||||
|
pSDShowRemoveMatteOption: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
Loading…
Reference in a new issue