NoRotationConstraint Class |
Namespace: DigitalRune.Physics.Constraints
The NoRotationConstraint type exposes the following members.
Name | Description | |
---|---|---|
NoRotationConstraint |
Initializes a new instance of the NoRotationConstraint class.
|
Name | Description | |
---|---|---|
ApplyImpulse |
Called by the simulation to apply an impulse that satisfies the constraint.
(Inherited from Constraint.) | |
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 constraint is added to a simulation.
(Overrides ConstraintOnAddToSimulation.) | |
OnApplyImpulse |
Called when the constraint impulse should be applied.
(Overrides ConstraintOnApplyImpulse.) | |
OnChanged |
Called when properties of this constraint were changed.
(Overrides ConstraintOnChanged.) | |
OnRemoveFromSimulation |
Called when this constraint is removed from a simulation.
(Overrides ConstraintOnRemoveFromSimulation.) | |
OnSetup |
Called when constraint should be set-up for a new time step.
(Overrides ConstraintOnSetup.) | |
Setup |
Called by the simulation to prepare this constraint for constraint solving for a new time
step.
(Inherited from Constraint.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
AnchorOrientationALocal | ||
AnchorOrientationBLocal | ||
AngularConstraintImpulse |
Gets or sets the angular constraint impulse that was applied.
(Overrides ConstraintAngularConstraintImpulse.) | |
BodyA |
Gets or sets the first body.
(Inherited from Constraint.) | |
BodyB |
Gets or sets the second body.
(Inherited from Constraint.) | |
CollisionEnabled | (Inherited from Constraint.) | |
Enabled |
Gets or sets a value indicating whether this constraint is enabled.
(Inherited from Constraint.) | |
ErrorReduction |
Gets or sets the error reduction parameter.
| |
LinearConstraintImpulse |
Gets or sets the linear constraint impulse that was applied.
(Overrides ConstraintLinearConstraintImpulse.) | |
MaxForce |
Gets or sets the maximal force that is applied by this constraint.
| |
Simulation |
Gets the simulation to which this constraint belongs.
(Inherited from Constraint.) | |
Softness |
Gets or sets the softness.
|
This joint removes all 3 rotational degrees of freedom. It forces the constraint anchor orientations to be equal. The translational movement is not restricted and both bodies can rotate relative to other bodies as long as both constraint bodies perform the same rotation.
On its own this constraint is not very useful, but combined with constraints that restrict translational movement it creates practical joints. For example, if this constraint is combined with a PointOnLineConstraint, it creates a point-on-line constraint with fixed relative orientations.
One constraint body can be set to the simulation World to create a body that cannot rotate. But in this case it is more efficient and more stable to lock the rotations of the body using RigidBody properties (LockRotationX, LockRotationY and LockRotationZ).