mirror of
https://github.com/ConjureETS/PixelSphinx.git
synced 2026-03-24 02:20:58 +00:00
Player movement - left right + jump + hitting walls
This commit is contained in:
parent
4cb9578e10
commit
715c2df17d
@ -12,8 +12,12 @@ public class Astronaut : MonoBehaviour {
|
||||
public GameObject SpriteWalk;
|
||||
public GameObject SpriteDash;
|
||||
|
||||
public float Width;
|
||||
|
||||
public float StepTime;
|
||||
public float JumpSpeed;
|
||||
public float Gravity;
|
||||
public float Speed;
|
||||
|
||||
public PlanetManager planet;
|
||||
|
||||
@ -42,27 +46,86 @@ public class Astronaut : MonoBehaviour {
|
||||
SpriteDash.SetActive(false);
|
||||
}
|
||||
|
||||
if (_state == AstronautState.Walking)
|
||||
/*if (_state == AstronautState.Walking)
|
||||
{
|
||||
StartCoroutine(WalkingStance());
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
private float vSpeed = 0;
|
||||
private float theta = 0;
|
||||
private float height = 0;
|
||||
private float angle = 0;
|
||||
private float vSpeed = 0;
|
||||
private bool grounded = false;
|
||||
|
||||
private float walkTime = 0;
|
||||
private int nextStep = 1;
|
||||
|
||||
// Use this for initialization
|
||||
void Start () {
|
||||
State = AstronautState.Idle;
|
||||
transform.position = new Vector3(transform.position.x, planet.GetPlanetRadius(0));
|
||||
//Debug.Log(planet.GetPlanetRadius(0));
|
||||
theta = 0;
|
||||
height = planet.GetPlanetRadius(theta);
|
||||
UpdatePosition();
|
||||
}
|
||||
|
||||
private void UpdatePosition()
|
||||
{
|
||||
//float heightAtPos = planet.GetPlanetRadius(theta);
|
||||
transform.localPosition = new Vector3(0, height, 0);
|
||||
Rotator.transform.localRotation = Quaternion.Euler(0, 0, theta - 108);
|
||||
}
|
||||
|
||||
private float GetGroundRadius()
|
||||
{
|
||||
return GetGroundRadius(theta);
|
||||
}
|
||||
|
||||
private float GetGroundRadius(float theta)
|
||||
{
|
||||
float displacement = PlanetUtilities.GetDisplacementAngle(Width / 2, height);
|
||||
Debug.Log(displacement + " " + Width/2 + " " + height);
|
||||
float radius1 = planet.GetPlanetRadius(Repeat(theta + displacement, 360));
|
||||
float radius2 = planet.GetPlanetRadius(Repeat(theta - displacement, 360));
|
||||
//float x1, y1, x2, y2;
|
||||
//PlanetUtilities.Spheric2Cartesian(theta + displacement, height, out x1, out y1);
|
||||
//PlanetUtilities.Spheric2Cartesian(theta - displacement, height, out x2, out y2);
|
||||
//Debug.DrawLine(new Vector3(x1, y1, 0), new Vector3(x2, y2, 0));
|
||||
return Mathf.Max(radius1, radius2);
|
||||
}
|
||||
|
||||
private float Repeat(float num, float limit)
|
||||
{
|
||||
return Mathf.Repeat(num + limit, limit);
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update () {
|
||||
float delta = Time.deltaTime;
|
||||
|
||||
if (!grounded)
|
||||
{
|
||||
height += vSpeed * delta;
|
||||
vSpeed -= Gravity * delta;
|
||||
}
|
||||
|
||||
float radius = GetGroundRadius();
|
||||
if (grounded = (height <= radius))
|
||||
{
|
||||
height = radius;
|
||||
if (State == AstronautState.Jumping)
|
||||
State = AstronautState.Idle;
|
||||
}
|
||||
|
||||
UpdatePosition();
|
||||
|
||||
//float x, y;
|
||||
//
|
||||
//PlanetUtilities.Spheric2Cartesian(theta, heightAtPos, out x, out y);
|
||||
//
|
||||
//
|
||||
|
||||
/*
|
||||
if (State == AstronautState.Walking)
|
||||
{
|
||||
@ -70,7 +133,6 @@ public class Astronaut : MonoBehaviour {
|
||||
Vector3 rotation = transform.rotation.eulerAngles;
|
||||
rotation.z = Mathf.Sin(walkTime * Mathf.PI)*50;
|
||||
transform.rotation = Quaternion.Euler(rotation);
|
||||
Debug.Log(rotation.z);
|
||||
}*/
|
||||
|
||||
/*
|
||||
@ -112,12 +174,35 @@ public class Astronaut : MonoBehaviour {
|
||||
walkTime = 0f;
|
||||
}
|
||||
}
|
||||
|
||||
if (State < AstronautState.Dashing)
|
||||
{
|
||||
if (-0.2 < x && x < 0.2) return;
|
||||
//Debug.Log(x + " " + Speed + " " + height);
|
||||
float movement = PlanetUtilities.GetDisplacementAngle(Speed * -x, height) * Time.deltaTime;
|
||||
//Debug.Log("Moving! - " + height);
|
||||
//Debug.Log("Daaa - " + movement);
|
||||
float newTheta = theta + movement;
|
||||
|
||||
float newHeight = GetGroundRadius(newTheta);
|
||||
if (newHeight > height)
|
||||
{
|
||||
Debug.Log("Blocked by wall");
|
||||
return; // Blocked by wall
|
||||
}
|
||||
|
||||
theta = newTheta;
|
||||
}
|
||||
}
|
||||
|
||||
public void Jump()
|
||||
{
|
||||
if (_state >= AstronautState.Ejecting)
|
||||
if (State >= AstronautState.Ejecting || State == AstronautState.Jumping)
|
||||
return;
|
||||
if (!grounded) return;
|
||||
vSpeed = JumpSpeed;
|
||||
grounded = false;
|
||||
State = AstronautState.Jumping;
|
||||
}
|
||||
|
||||
public void Dash()
|
||||
@ -132,7 +217,7 @@ public class Astronaut : MonoBehaviour {
|
||||
Debug.Log("Clicked the button with an image");
|
||||
}
|
||||
|
||||
IEnumerator WalkingStance()
|
||||
/*IEnumerator WalkingStance()
|
||||
{
|
||||
Debug.Log("walking stance");
|
||||
walkTime += Time.deltaTime / StepTime;
|
||||
@ -150,5 +235,5 @@ public class Astronaut : MonoBehaviour {
|
||||
{
|
||||
StartCoroutine("WalkingStance");
|
||||
}
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
@ -15,10 +15,8 @@ public class PlanetManager : MonoBehaviour
|
||||
public GameObject WedgePrefab = null;
|
||||
public List<Wedge> wedges = new List<Wedge>();
|
||||
|
||||
|
||||
|
||||
// Use this for initialization
|
||||
void Start () {
|
||||
void Awake () {
|
||||
TailleCartiersEnDegres = 360.0f / NbCartiers;
|
||||
|
||||
for(int i = 0; i < NbCartiers; i++)
|
||||
@ -26,7 +24,6 @@ public class PlanetManager : MonoBehaviour
|
||||
float debutAngleTheta = i* TailleCartiersEnDegres;
|
||||
var w = new Wedge() {tMin = debutAngleTheta, tMax = debutAngleTheta + TailleCartiersEnDegres};
|
||||
|
||||
|
||||
//float angle = i * Mathf.PI * 2 / NbCartiers * 360;
|
||||
//var wedgePos = GetPlanetCoordinatesFromPlayerXY(debutAngleTheta, 0);
|
||||
// wedgePos.x -= Mathf.Cos(debutAngleTheta * Mathf.PI / 180);
|
||||
@ -36,7 +33,6 @@ public class PlanetManager : MonoBehaviour
|
||||
w.sprite = GameObject.Find(obj.name);
|
||||
wedges.Add(w); //pushes at end.
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
@ -47,6 +43,7 @@ public class PlanetManager : MonoBehaviour
|
||||
|
||||
void FixedUpdate()
|
||||
{
|
||||
if (!this.CartierResetRatioSpeedRandomize) return;
|
||||
//Ramener les plateforme vers leur position initiale 0;
|
||||
|
||||
foreach (var w in wedges)
|
||||
@ -80,7 +77,7 @@ public class PlanetManager : MonoBehaviour
|
||||
|
||||
w.sprite.transform.localScale = new Vector3(w.offset, w.offset,0.0f);
|
||||
}
|
||||
|
||||
//TODO_SR For each player
|
||||
}
|
||||
|
||||
public void PushWedge(float thetaPlayerX)
|
||||
@ -169,12 +166,11 @@ public class PlanetManager : MonoBehaviour
|
||||
/// Radius sphere est scale/2
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public float GetPlanetRadius(float thetaPlayerX)
|
||||
{
|
||||
var wedge = GetWedgeFromTheta(thetaPlayerX);
|
||||
return GetPlanetRadius() * wedge.offset;
|
||||
}
|
||||
|
||||
public float GetPlanetRadius(float thetaPlayerX)
|
||||
{
|
||||
var wedge = GetWedgeFromTheta(thetaPlayerX);
|
||||
return GetPlanetRadius() * wedge.offset;
|
||||
}
|
||||
|
||||
|
||||
public Vector3 GetPlanetCoordinatesFromPlayerXY(float playerLocalX, float playerLocalY)
|
||||
|
||||
@ -11,6 +11,6 @@ public class PlanetUtilities {
|
||||
|
||||
public static float GetDisplacementAngle(float delta, float radius)
|
||||
{
|
||||
return Mathf.Rad2Deg * radius / delta;
|
||||
return Mathf.Rad2Deg * delta / radius;
|
||||
}
|
||||
}
|
||||
|
||||
@ -4,11 +4,10 @@ using System.Collections;
|
||||
|
||||
public class testRotate : MonoBehaviour {
|
||||
|
||||
|
||||
|
||||
public float fireRate = 0.2f;
|
||||
private float lastShot = 0.0f;
|
||||
private float speed = 33.2f;
|
||||
public bool check;
|
||||
|
||||
void Update()
|
||||
{
|
||||
@ -57,7 +56,7 @@ public class testRotate : MonoBehaviour {
|
||||
{
|
||||
|
||||
var theta = Time.realtimeSinceStartup * speed % 360.0f; // Position X du player = angle theta
|
||||
|
||||
if (check) theta = 0;
|
||||
|
||||
var planet = GameObject.Find("Planet").gameObject.GetComponent<PlanetManager>();
|
||||
|
||||
@ -70,6 +69,7 @@ public class testRotate : MonoBehaviour {
|
||||
|
||||
var player = GameObject.Find("CubePlayer").gameObject;
|
||||
|
||||
Vector3 pos = planet.GetPlanetCoordinatesFromPlayerXY(theta, 0f);
|
||||
//player.transform.position = Vector3.Lerp(player.transform.position, new Vector3(x, y, 0 ), Time.deltaTime);
|
||||
player.transform.position = Vector3.Lerp(player.transform.position,
|
||||
planet.GetPlanetCoordinatesFromPlayerXY(theta, 0f), Time.fixedDeltaTime);
|
||||
|
||||
576
Assets/Test/SR_Player2.unity
Normal file
576
Assets/Test/SR_Player2.unity
Normal file
@ -0,0 +1,576 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!29 &1
|
||||
SceneSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PVSData:
|
||||
m_PVSObjectsArray: []
|
||||
m_PVSPortalsArray: []
|
||||
m_OcclusionBakeSettings:
|
||||
smallestOccluder: 5
|
||||
smallestHole: 0.25
|
||||
backfaceThreshold: 100
|
||||
--- !u!104 &2
|
||||
RenderSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 6
|
||||
m_Fog: 0
|
||||
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
|
||||
m_FogMode: 3
|
||||
m_FogDensity: 0.01
|
||||
m_LinearFogStart: 0
|
||||
m_LinearFogEnd: 300
|
||||
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
|
||||
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
|
||||
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
|
||||
m_AmbientIntensity: 1
|
||||
m_AmbientMode: 3
|
||||
m_SkyboxMaterial: {fileID: 0}
|
||||
m_HaloStrength: 0.5
|
||||
m_FlareStrength: 1
|
||||
m_FlareFadeSpeed: 3
|
||||
m_HaloTexture: {fileID: 0}
|
||||
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_DefaultReflectionMode: 0
|
||||
m_DefaultReflectionResolution: 128
|
||||
m_ReflectionBounces: 1
|
||||
m_ReflectionIntensity: 1
|
||||
m_CustomReflection: {fileID: 0}
|
||||
m_Sun: {fileID: 0}
|
||||
--- !u!157 &3
|
||||
LightmapSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 6
|
||||
m_GIWorkflowMode: 1
|
||||
m_LightmapsMode: 1
|
||||
m_GISettings:
|
||||
serializedVersion: 2
|
||||
m_BounceScale: 1
|
||||
m_IndirectOutputScale: 1
|
||||
m_AlbedoBoost: 1
|
||||
m_TemporalCoherenceThreshold: 1
|
||||
m_EnvironmentLightingMode: 0
|
||||
m_EnableBakedLightmaps: 0
|
||||
m_EnableRealtimeLightmaps: 0
|
||||
m_LightmapEditorSettings:
|
||||
serializedVersion: 3
|
||||
m_Resolution: 2
|
||||
m_BakeResolution: 40
|
||||
m_TextureWidth: 1024
|
||||
m_TextureHeight: 1024
|
||||
m_AOMaxDistance: 1
|
||||
m_Padding: 2
|
||||
m_CompAOExponent: 0
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_TextureCompression: 1
|
||||
m_FinalGather: 0
|
||||
m_FinalGatherRayCount: 1024
|
||||
m_ReflectionCompression: 2
|
||||
m_LightingDataAsset: {fileID: 0}
|
||||
m_RuntimeCPUUsage: 25
|
||||
--- !u!196 &4
|
||||
NavMeshSettings:
|
||||
serializedVersion: 2
|
||||
m_ObjectHideFlags: 0
|
||||
m_BuildSettings:
|
||||
serializedVersion: 2
|
||||
agentRadius: 0.5
|
||||
agentHeight: 2
|
||||
agentSlope: 45
|
||||
agentClimb: 0.4
|
||||
ledgeDropHeight: 0
|
||||
maxJumpAcrossDistance: 0
|
||||
accuratePlacement: 0
|
||||
minRegionArea: 2
|
||||
cellSize: 0.16666667
|
||||
manualCellSize: 0
|
||||
m_NavMeshData: {fileID: 0}
|
||||
--- !u!1 &437600384
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 437600388}
|
||||
- 33: {fileID: 437600387}
|
||||
- 135: {fileID: 437600386}
|
||||
- 23: {fileID: 437600385}
|
||||
- 114: {fileID: 437600389}
|
||||
m_Layer: 0
|
||||
m_Name: Planet
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!23 &437600385
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 437600384}
|
||||
m_Enabled: 0
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_Materials:
|
||||
- {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_SubsetIndices:
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_UseLightProbes: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_PreserveUVs: 1
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingOrder: 0
|
||||
--- !u!135 &437600386
|
||||
SphereCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 437600384}
|
||||
m_Material: {fileID: 0}
|
||||
m_IsTrigger: 0
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_Radius: 0.5
|
||||
m_Center: {x: 0, y: 0, z: 0}
|
||||
--- !u!33 &437600387
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 437600384}
|
||||
m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0}
|
||||
--- !u!4 &437600388
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 437600384}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 7.9, y: 7.9, z: 0.1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 2
|
||||
--- !u!114 &437600389
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 437600384}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 43d953650863ce04d8918939e0248654, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
NbCartiers: 10
|
||||
TailleCartiersEnDegres: 0
|
||||
CartierResetRatioSpeedFactor: 0.23
|
||||
CartierResetRatioSpeedRandomize: 0
|
||||
CartierMinRatio: 0.4
|
||||
CartierMaxRatio: 2
|
||||
WedgePrefab: {fileID: 170328, guid: 0b78da08dfa398840862539a74cc2377, type: 2}
|
||||
--- !u!1001 &556403999
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 498212, guid: 158e745881137e04ca2086294f44d74c, type: 2}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: -0.6692338
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 498212, guid: 158e745881137e04ca2086294f44d74c, type: 2}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 1.7862048
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 498212, guid: 158e745881137e04ca2086294f44d74c, type: 2}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: -0.045327663
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 498212, guid: 158e745881137e04ca2086294f44d74c, type: 2}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 498212, guid: 158e745881137e04ca2086294f44d74c, type: 2}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 498212, guid: 158e745881137e04ca2086294f44d74c, type: 2}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 498212, guid: 158e745881137e04ca2086294f44d74c, type: 2}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 498212, guid: 158e745881137e04ca2086294f44d74c, type: 2}
|
||||
propertyPath: m_RootOrder
|
||||
value: 4
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 11450178, guid: 158e745881137e04ca2086294f44d74c, type: 2}
|
||||
propertyPath: InputMapperAsset
|
||||
value:
|
||||
objectReference: {fileID: 11400000, guid: ba52e0f13249c9e46bb162622e61904f,
|
||||
type: 2}
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 100100000, guid: 158e745881137e04ca2086294f44d74c, type: 2}
|
||||
m_IsPrefabParent: 0
|
||||
--- !u!1 &638371353
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 638371358}
|
||||
- 20: {fileID: 638371357}
|
||||
- 92: {fileID: 638371356}
|
||||
- 124: {fileID: 638371355}
|
||||
- 81: {fileID: 638371354}
|
||||
m_Layer: 0
|
||||
m_Name: Main Camera
|
||||
m_TagString: MainCamera
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!81 &638371354
|
||||
AudioListener:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 638371353}
|
||||
m_Enabled: 1
|
||||
--- !u!124 &638371355
|
||||
Behaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 638371353}
|
||||
m_Enabled: 1
|
||||
--- !u!92 &638371356
|
||||
Behaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 638371353}
|
||||
m_Enabled: 1
|
||||
--- !u!20 &638371357
|
||||
Camera:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 638371353}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 1
|
||||
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0.019607844}
|
||||
m_NormalizedViewPortRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1
|
||||
height: 1
|
||||
near clip plane: 0.3
|
||||
far clip plane: 1000
|
||||
field of view: 60
|
||||
orthographic: 1
|
||||
orthographic size: 6
|
||||
m_Depth: -1
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingPath: -1
|
||||
m_TargetTexture: {fileID: 0}
|
||||
m_TargetDisplay: 0
|
||||
m_TargetEye: 3
|
||||
m_HDR: 0
|
||||
m_OcclusionCulling: 1
|
||||
m_StereoConvergence: 10
|
||||
m_StereoSeparation: 0.022
|
||||
m_StereoMirrorMode: 0
|
||||
--- !u!4 &638371358
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 638371353}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: -10}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
--- !u!1 &1250089528
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 1250089532}
|
||||
- 33: {fileID: 1250089531}
|
||||
- 65: {fileID: 1250089530}
|
||||
- 23: {fileID: 1250089529}
|
||||
- 114: {fileID: 1250089535}
|
||||
m_Layer: 0
|
||||
m_Name: CubePlayer
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!23 &1250089529
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1250089528}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_Materials:
|
||||
- {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_SubsetIndices:
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_UseLightProbes: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_PreserveUVs: 1
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingOrder: 0
|
||||
--- !u!65 &1250089530
|
||||
BoxCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1250089528}
|
||||
m_Material: {fileID: 0}
|
||||
m_IsTrigger: 0
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_Size: {x: 1, y: 1, z: 1}
|
||||
m_Center: {x: 0, y: 0, z: 0}
|
||||
--- !u!33 &1250089531
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1250089528}
|
||||
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
|
||||
--- !u!4 &1250089532
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1250089528}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 5.06, y: 0.16, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 3
|
||||
--- !u!114 &1250089535
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1250089528}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: ac56b6226ed50a742a676cbfae403f88, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
fireRate: 1
|
||||
check: 0
|
||||
--- !u!1 &1688389652
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 1688389656}
|
||||
- 33: {fileID: 1688389655}
|
||||
- 65: {fileID: 1688389654}
|
||||
- 23: {fileID: 1688389653}
|
||||
m_Layer: 0
|
||||
m_Name: Cube
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 0
|
||||
--- !u!23 &1688389653
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1688389652}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_Materials:
|
||||
- {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_SubsetIndices:
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_UseLightProbes: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_PreserveUVs: 1
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingOrder: 0
|
||||
--- !u!65 &1688389654
|
||||
BoxCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1688389652}
|
||||
m_Material: {fileID: 0}
|
||||
m_IsTrigger: 0
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_Size: {x: 1, y: 1, z: 1}
|
||||
m_Center: {x: 0, y: 0, z: 0}
|
||||
--- !u!33 &1688389655
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1688389652}
|
||||
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
|
||||
--- !u!4 &1688389656
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1688389652}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: -0.04, y: 0.151, z: 0}
|
||||
m_LocalScale: {x: 0.65, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 5
|
||||
--- !u!1001 &1843779772
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 494126, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 494126, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 494126, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 494126, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 494126, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 494126, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 494126, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 494126, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
|
||||
propertyPath: m_RootOrder
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 403646, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 11494368, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
|
||||
propertyPath: planet
|
||||
value:
|
||||
objectReference: {fileID: 437600389}
|
||||
- target: {fileID: 11494368, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
|
||||
propertyPath: StepTime
|
||||
value: 5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 11494368, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
|
||||
propertyPath: JumpSpeed
|
||||
value: 5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 21257324, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
|
||||
propertyPath: m_SortingOrder
|
||||
value: 15
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 21220066, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
|
||||
propertyPath: m_SortingOrder
|
||||
value: 15
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 406446, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: -0.04
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 418246, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: -0.18
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 406446, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0.63
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 418246, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0.36
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 11494368, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
|
||||
propertyPath: width
|
||||
value: 0.4
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 11494368, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
|
||||
propertyPath: Gravity
|
||||
value: 15
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 11494368, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
|
||||
propertyPath: Speed
|
||||
value: 5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 11494368, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
|
||||
propertyPath: Width
|
||||
value: 0.4
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 100100000, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
|
||||
m_IsPrefabParent: 0
|
||||
8
Assets/Test/SR_Player2.unity.meta
Normal file
8
Assets/Test/SR_Player2.unity.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3e861b2d4ce52c444a738c636f92c728
|
||||
timeCreated: 1460123938
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Loading…
x
Reference in New Issue
Block a user