Click or drag to resize
DigitalRuneDamping Class
Applies a damping force (viscous drag).
Inheritance Hierarchy

Namespace: DigitalRune.Physics.ForceEffects
Assembly: DigitalRune.Physics (in DigitalRune.Physics.dll) Version: 1.10.0.0 (1.10.0.14427)
Syntax
public class Damping : ForceField

The Damping type exposes the following members.

Constructors
  NameDescription
Public methodDamping
Initializes a new instance of the Damping class.
Public methodDamping(IAreaOfEffect)
Initializes a new instance of the Damping class.
Top
Methods
  NameDescription
Public methodApply
Applies the force effect to the specified body.
(Overrides ForceFieldApply(RigidBody).)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnAddToSimulation
Called when this force effect is added to a simulation.
(Inherited from ForceEffect.)
Protected methodOnApply
Called when the simulation wants this force effect to apply forces to rigid bodies.
(Inherited from ForceField.)
Protected methodOnDisabled
Called when this force effect was disabled.
(Inherited from ForceEffect.)
Protected methodOnEnabled
Called when this force effect was enabled.
(Inherited from ForceEffect.)
Protected methodOnRemoveFromSimulation
Called when this force effect is removed from a simulation.
(Inherited from ForceEffect.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyAngularDamping
The angular damping coefficient.
Public propertyAreaOfEffect
Gets or sets the area of effect.
(Inherited from ForceField.)
Public propertyEnabled
Gets or sets a value indicating whether this ForceEffect is enabled.
(Inherited from ForceEffect.)
Public propertyLinearDamping
The linear damping coefficient.
Public propertySimulation
Gets the simulation to which this force effect belongs.
(Inherited from ForceEffect.)
Top
Remarks
The effect applies a force that is proportional to the current velocity of a rigid body. The force will slow the bodies movement.
See Also