Click or drag to resize
DigitalRunePointOnPlaneConstraint Class
Restricts a body to move in a plane that is fixed on another body.
Inheritance Hierarchy
SystemObject
  DigitalRune.Physics.ConstraintsConstraint
    DigitalRune.Physics.ConstraintsPointOnPlaneConstraint

Namespace: DigitalRune.Physics.Constraints
Assembly: DigitalRune.Physics (in DigitalRune.Physics.dll) Version: 1.10.0.0 (1.10.0.14427)
Syntax
public class PointOnPlaneConstraint : Constraint

The PointOnPlaneConstraint type exposes the following members.

Constructors
  NameDescription
Public methodPointOnPlaneConstraint
Initializes a new instance of the PointOnPlaneConstraint class.
Top
Methods
  NameDescription
Public methodApplyImpulse
Called by the simulation to apply an impulse that satisfies the constraint.
(Inherited from Constraint.)
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 constraint is added to a simulation.
(Overrides ConstraintOnAddToSimulation.)
Protected methodOnApplyImpulse
Called when the constraint impulse should be applied.
(Overrides ConstraintOnApplyImpulse.)
Protected methodOnChanged
Called when properties of this constraint were changed.
(Overrides ConstraintOnChanged.)
Protected methodOnRemoveFromSimulation
Called when this constraint is removed from a simulation.
(Overrides ConstraintOnRemoveFromSimulation.)
Protected methodOnSetup
Called when constraint should be set-up for a new time step.
(Overrides ConstraintOnSetup.)
Public methodSetup
Called by the simulation to prepare this constraint for constraint solving for a new time step.
(Inherited from Constraint.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyAnchorPositionALocal
Gets or sets the constraint anchor position on BodyA in local space of BodyA.
Public propertyAnchorPositionBLocal
Gets or sets the constraint anchor position on BodyB in local space of BodyB.
Public propertyAngularConstraintImpulse
Gets or sets the angular constraint impulse that was applied.
(Overrides ConstraintAngularConstraintImpulse.)
Public propertyBodyA
Gets or sets the first body.
(Inherited from Constraint.)
Public propertyBodyB
Gets or sets the second body.
(Inherited from Constraint.)
Public propertyCollisionEnabled
Gets or sets a value indicating whether collisions between BodyA and BodyB are disabled.
(Inherited from Constraint.)
Public propertyEnabled
Gets or sets a value indicating whether this constraint is enabled.
(Inherited from Constraint.)
Public propertyErrorReduction
Gets or sets the error reduction parameter.
Public propertyLinearConstraintImpulse
Gets or sets the linear constraint impulse that was applied.
(Overrides ConstraintLinearConstraintImpulse.)
Public propertyMaxForce
Gets or sets the maximal force that is applied by this constraint.
Public propertyMaximum
Gets or sets the maximum movement limits on the plane.
Public propertyMinimum
Gets or sets the minimum movement limits on the plane.
Public propertyRelativePosition
Gets the position on the plane axes relative to AnchorPositionALocal.
Public propertyRestitution
Gets or sets the coefficient of restitution for limits.
Public propertySimulation
Gets the simulation to which this constraint belongs.
(Inherited from Constraint.)
Public propertySoftness
Gets or sets the softness.
Public propertyXAxisALocal
Gets or sets the x-axis in the plane that is fixed on BodyA in local space of BodyA.
Public propertyYAxisALocal
Gets or sets the y-axis in the plane that is fixed on BodyA in local space of BodyA.
Top
Remarks

A plane is fixed on BodyA. The plane goes through AnchorPositionALocal and is defined by the two axes XAxisALocal and YAxisALocal that are also fixed on the first body. The point AnchorPositionBLocal on the second body can only move in this plane.

This constraint removes 1 translational degree of movement (the movement normal to the plane). It does not restrict rotational movement.

See Also