Click or drag to resize
DigitalRuneIMaterialGetProperties Method
Gets the MaterialProperties for the given rigid body, position and shape feature.

Namespace: DigitalRune.Physics.Materials
Assembly: DigitalRune.Physics (in DigitalRune.Physics.dll) Version: 1.10.0.0 (1.10.0.14427)
Syntax
MaterialProperties GetProperties(
	RigidBody body,
	Vector3F positionLocal,
	int featureIndex
)

Parameters

body
Type: DigitalRune.PhysicsRigidBody
The rigid body.
positionLocal
Type: DigitalRune.Mathematics.AlgebraVector3F
The local position on the rigid body for which the material properties should be returned.
featureIndex
Type: SystemInt32
The index of the shape feature from which the material properties are needed. For a CompositeShape the feature index is the index of the child of the composite shape. For a TriangleMeshShape the feature index is the index of a triangle.

Return Value

Type: MaterialProperties
The MaterialProperties of the given rigid body at the given position and child feature.
See Also