ForceField Class |
Namespace: DigitalRune.Physics.ForceEffects
The ForceField type exposes the following members.
Name | Description | |
---|---|---|
ForceField |
Initializes a new instance of the ForceField class.
| |
ForceField(IAreaOfEffect) |
Initializes a new instance of the ForceField class.
|
Name | Description | |
---|---|---|
Apply |
Applies the force effect to the specified body.
| |
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.
(Inherited from ForceEffect.) | |
OnApply |
Called when the simulation wants this force effect to apply forces to rigid bodies.
(Overrides ForceEffectOnApply.) | |
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.
| |
Enabled |
Gets or sets a value indicating whether this ForceEffect is enabled.
(Inherited from ForceEffect.) | |
Simulation |
Gets the simulation to which this force effect belongs.
(Inherited from ForceEffect.) |
A force field is a specialized force effect that applies a force to all bodies that are in the AreaOfEffect. The area of effect can be defined using collision detection, simple lists, or other means. Each body in the area of effect is treated individually.
Derived classes must implement the method Apply(RigidBody).