Tweaked explosions and stuff.
This commit is contained in:
parent
3c43de1292
commit
b45d30714c
4 changed files with 32547 additions and 14 deletions
Binary file not shown.
File diff suppressed because it is too large
Load diff
|
@ -15,6 +15,7 @@ public class Explosion : MonoBehaviour {
|
||||||
Rigidbody2D playerBody = player.GetComponent<Rigidbody2D>();
|
Rigidbody2D playerBody = player.GetComponent<Rigidbody2D>();
|
||||||
Vector2 force = (playerPos - transform.position).normalized * (MAX_PLAYER_DIST - dist) * 15.0f;
|
Vector2 force = (playerPos - transform.position).normalized * (MAX_PLAYER_DIST - dist) * 15.0f;
|
||||||
playerBody.AddForce(force, ForceMode2D.Impulse);
|
playerBody.AddForce(force, ForceMode2D.Impulse);
|
||||||
|
Debug.Log(force);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,7 @@ TagManager:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
tags:
|
tags:
|
||||||
- Finish Line
|
- Finish Line
|
||||||
|
- Deathbox
|
||||||
layers:
|
layers:
|
||||||
- Default
|
- Default
|
||||||
- TransparentFX
|
- TransparentFX
|
||||||
|
|
Reference in a new issue