Modified player height

This commit is contained in:
RosimInc 2016-04-09 13:56:20 -04:00
parent 362c0769ec
commit 63233c9e4d
4 changed files with 65 additions and 6 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 KiB

View File

@ -0,0 +1,57 @@
fileFormatVersion: 2
guid: e754c9a065417df45b0045f72d7d29fb
timeCreated: 1460224322
licenseType: Free
TextureImporter:
fileIDToRecycleName: {}
serializedVersion: 2
mipmaps:
mipMapMode: 0
enableMipMap: 1
linearTexture: 0
correctGamma: 0
fadeOut: 0
borderMipMap: 0
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
grayScaleToAlpha: 0
generateCubemap: 0
cubemapConvolution: 0
cubemapConvolutionSteps: 7
cubemapConvolutionExponent: 1.5
seamlessCubemap: 0
textureFormat: -1
maxTextureSize: 2048
textureSettings:
filterMode: -1
aniso: -1
mipBias: -1
wrapMode: 1
nPOTScale: 0
lightmap: 0
rGBM: 0
compressionQuality: 50
allowsAlphaSplitting: 0
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spritePixelsToUnits: 100
alphaIsTransparency: 1
textureType: 8
buildTargetSettings: []
spriteSheet:
sprites: []
outline: []
spritePackingTag:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -46,7 +46,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!1 &170392
GameObject:
m_ObjectHideFlags: 0
@ -145,7 +145,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: ab270b0cb2475114ab8eb45661af0df1, type: 3}
m_Name:
m_EditorClassIdentifier:
PlayerNumber: 0
PlayerNumber: 1
--- !u!114 &11491252
MonoBehaviour:
m_ObjectHideFlags: 1
@ -158,9 +158,9 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
aspi: {fileID: 0}
WalkAnimSpeed: 4
WalkAnimAngle: 15
EjectSpinSpeed: 80
WalkAnimSpeed: 3
WalkAnimAngle: 20
EjectSpinSpeed: 10
DustParticlesEmitter: {fileID: 138982, guid: 6233079c5a9a756458811f283fdca112, type: 2}
--- !u!114 &11494368
MonoBehaviour:
@ -177,6 +177,7 @@ MonoBehaviour:
SpriteWalk: {fileID: 21220066}
SpriteDash: {fileID: 157058}
Width: 0.4
Height: 0.7
DashTime: 0.4
StepTime: 5
JumpSpeed: 5

View File

@ -15,6 +15,7 @@ public class Astronaut : MonoBehaviour {
public GameObject SpriteDash;
public float Width;
public float Height;
public float DashTime = 0.4f; //Temps de l'animation et rate limiting
private float lastDashTime = 0f;
public float StepTime;
@ -104,7 +105,7 @@ public class Astronaut : MonoBehaviour {
private void UpdatePosition()
{
//float heightAtPos = planet.GetPlanetRadius(theta);
transform.localPosition = new Vector3(0, height, 0);
transform.localPosition = new Vector3(0, height + Height / 2, 0);
Rotator.transform.localRotation = Quaternion.Euler(0, 0, theta - 108);
}