FEEDBACK : Pousser la plateforme avec le dash une fois qu'on touche au sol. (pas avant)

This commit is contained in:
Jean-Sébastien Gervais 2016-04-09 09:08:16 -04:00
parent 5954106bf0
commit 2b2c52909a
2 changed files with 58 additions and 13 deletions

View File

@ -146,12 +146,11 @@ public class Astronaut : MonoBehaviour {
float radius = GetGroundRadius();
if (grounded = (height <= radius))
{
/*if (State == AstronautState.Dashing)
//Pousser la plateforme avec le dash une fois qu'on touche au sol.
if (State == AstronautState.Dashing)
{
planet.PushWedge(Repeat(theta,360));
State = AstronautState.Idle;
//TODO_SR Create dash impact here
}*/
planet.PushWedge(this.theta);
}
height = radius;
if (State == AstronautState.Jumping)
@ -280,7 +279,7 @@ public class Astronaut : MonoBehaviour {
lastDashTime = Time.time;
planet.PushWedge(this.theta); //TODO devrait se faire juste avant d'être groundé
//planet.PushWedge(this.theta); //TODO devrait se faire juste avant d'être groundé
State = AstronautState.Dashing;
_astronautAnimator.Dash();
//vSpeed = -DashSpeed;

View File

@ -85,6 +85,56 @@ NavMeshSettings:
cellSize: 0.16666667
manualCellSize: 0
m_NavMeshData: {fileID: 0}
--- !u!1001 &49842865
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.11
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: 6
objectReference: {fileID: 0}
- target: {fileID: 154602, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
propertyPath: m_Name
value: Astronaut_2
objectReference: {fileID: 0}
- target: {fileID: 11434752, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
propertyPath: PlayerNumber
value: 2
objectReference: {fileID: 0}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 100100000, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
m_IsPrefabParent: 0
--- !u!114 &1027139440 stripped
MonoBehaviour:
m_PrefabParentObject: {fileID: 11471614, guid: 198e988adacced646a19f757f6237ae1,
@ -273,13 +323,9 @@ Prefab:
propertyPath: m_Name
value: Astronaut_1
objectReference: {fileID: 0}
- target: {fileID: 11491252, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
propertyPath: DustParticlesEmitter
value:
objectReference: {fileID: 138982, guid: 6233079c5a9a756458811f283fdca112, type: 2}
- target: {fileID: 11491252, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
propertyPath: EjectSpinSpeed
value: -50
- target: {fileID: 11434752, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
propertyPath: PlayerNumber
value: 1
objectReference: {fileID: 0}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 100100000, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}