Click or drag to resize
DigitalRuneConstraintHelperComputeKMatrix Method
Computes the K matrix needed by sequential impulse-based methods.

Namespace: DigitalRune.Physics.Constraints
Assembly: DigitalRune.Physics (in DigitalRune.Physics.dll) Version: 1.10.0.0 (1.10.0.14427)
Syntax
public static Matrix33F ComputeKMatrix(
	this RigidBody body,
	Vector3F positionWorld
)

Parameters

body
Type: DigitalRune.PhysicsRigidBody
The body.
positionWorld
Type: DigitalRune.Mathematics.AlgebraVector3F
The constraint anchor position in world space.

Return Value

Type: Matrix33F
The K matrix.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type RigidBody. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ArgumentNullExceptionbody is .
See Also