| Explosion Class |
Namespace: DigitalRune.Physics.ForceEffects
The Explosion type exposes the following members.
| Name | Description | |
|---|---|---|
| Explosion |
Initializes a new instance of the Explosion class.
| |
| Explosion(IAreaOfEffect) |
Initializes a new instance of the Explosion class.
|
| Name | Description | |
|---|---|---|
| Apply |
Applies the force effect to the specified body.
(Overrides ForceFieldApply(RigidBody).) | |
| Equals | (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| OnAddToSimulation |
Called when this force effect is added to a simulation.
(Overrides ForceEffectOnAddToSimulation.) | |
| OnApply |
Called when the simulation wants this force effect to apply forces to rigid bodies.
(Overrides ForceFieldOnApply.) | |
| OnDisabled |
Called when this force effect was disabled.
(Inherited from ForceEffect.) | |
| OnEnabled |
Called when this force effect was enabled.
(Inherited from ForceEffect.) | |
| OnRemoveFromSimulation |
Called when this force effect is removed from a simulation.
(Inherited from ForceEffect.) | |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
| AreaOfEffect |
Gets or sets the area of effect.
(Inherited from ForceField.) | |
| Duration |
Gets or sets the duration of the explosion.
| |
| Enabled |
Gets or sets a value indicating whether this ForceEffect is enabled.
(Inherited from ForceEffect.) | |
| Force |
Gets or sets the force magnitude of the explosion.
| |
| Position |
Gets or sets the position of the center of the explosion.
| |
| Radius |
Gets or sets the explosion radius.
| |
| Simulation |
Gets the simulation to which this force effect belongs.
(Inherited from ForceEffect.) |
The explosion starts immediately after it is added to a Simulation. When the effect has ended (see Duration) it removes itself automatically from the ForceEffects collection of the Simulation.
Explosion Model: The effect applies a force that pushes rigid bodies away from the center of the explosion (see Position). The effect is only applied to the rigid body's center of mass - size, shape and orientation of the rigid body is ignored. The force effect has a linear falloff, i.e. a rigid body in n units distance experiences only 1/n of the force.