| ConstraintHelperComputeKMatrix Method |
Computes the K matrix needed by sequential impulse-based methods.
Namespace: DigitalRune.Physics.ConstraintsAssembly: 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
)
<ExtensionAttribute>
Public Shared Function ComputeKMatrix (
body As RigidBody,
positionWorld As Vector3F
) As Matrix33F
public:
[ExtensionAttribute]
static Matrix33F ComputeKMatrix(
RigidBody^ body,
Vector3F positionWorld
)
[<ExtensionAttribute>]
static member ComputeKMatrix :
body : RigidBody *
positionWorld : Vector3F -> Matrix33F
Parameters
- body
- Type: DigitalRune.PhysicsRigidBody
The body. - positionWorld
- Type: DigitalRune.Mathematics.AlgebraVector3F
The constraint anchor position in world space.
Return Value
Type:
Matrix33FThe 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 See Also