| CompositeMaterialGetProperties Method |
Namespace: DigitalRune.Physics.MaterialsAssembly: DigitalRune.Physics (in DigitalRune.Physics.dll) Version: 1.10.0.0 (1.10.0.14427)
Syntax public MaterialProperties GetProperties(
RigidBody body,
Vector3F positionLocal,
int featureIndex
)
Public Function GetProperties (
body As RigidBody,
positionLocal As Vector3F,
featureIndex As Integer
) As MaterialProperties
public:
virtual MaterialProperties GetProperties(
RigidBody^ body,
Vector3F positionLocal,
int featureIndex
) sealed
abstract GetProperties :
body : RigidBody *
positionLocal : Vector3F *
featureIndex : int -> MaterialProperties
override 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.
Implements
IMaterialGetProperties(RigidBody, Vector3F, Int32)Exceptions See Also