C# Class ExplosionForce, Unity-2D-Destruction

Inheritance: MonoBehaviour
Afficher le fichier Open project: mjholtzem/Unity-2D-Destruction Class Usage Examples

Méthodes publiques

Свойство Type Description
force float
radius float
upliftModifer float

Méthodes publiques

Méthode Description
doExplosion ( Vector3 position ) : void

create an explosion force

Private Methods

Méthode Description
AddExplosionForce ( Rigidbody2D body, float explosionForce, Vector3 explosionPosition, float explosionRadius, float upliftModifier ) : void

adds explosion force to given rigidbody

waitAndExplode ( ) : IEnumerator

exerts an explosion force on all rigidbodies within the given radius

Method Details

doExplosion() public méthode

create an explosion force
public doExplosion ( Vector3 position ) : void
position Vector3 location of the explosion
Résultat void

Property Details

force public_oe property

public float force
Résultat float

radius public_oe property

public float radius
Résultat float

upliftModifer public_oe property

public float upliftModifer
Résultat float