| IMaterialGetProperties Method |
Namespace: DigitalRune.Physics.MaterialsAssembly: DigitalRune.Physics (in DigitalRune.Physics.dll) Version: 1.10.0.0 (1.10.0.14427)
Syntax MaterialProperties GetProperties(
RigidBody body,
Vector3F positionLocal,
int featureIndex
)
Function GetProperties (
body As RigidBody,
positionLocal As Vector3F,
featureIndex As Integer
) As MaterialProperties
MaterialProperties GetProperties(
RigidBody^ body,
Vector3F positionLocal,
int featureIndex
)
abstract GetProperties :
body : RigidBody *
positionLocal : Vector3F *
featureIndex : int -> MaterialProperties
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