ICharacterView::HitTestMesh
Returns the information about what part of the mesh is under the specified screen coordinates.
HRESULT HitTestMesh(
short pane,
vertex2d* pscreenCoords,
BOOL includeHidden,
IMesh* pmesh,
matrix* pmtxWorld,
ISkeleton* pskel,
DWORD time,
IAnimation* panim,
long* pfaceIndex,
vertex3d* phitCoords,
vertex2d* ptexCoords
);
Parameters
pane
[in] Pane in which to perform the hit test.
pscreenCoords
[in] Hit test coordinates.
includeHidden
[in] Tells whether or not to include hidden faces in the hit test.
pmesh
[in] Pointer to the mesh to be hit tested.
pmtxWorld
[in] World matrix to be applied to the mesh before hit testing.
pskel
[in] Optional pointer to a skeleton used to be animate the mesh. Can be NULL.
time
[in] Animation time. This ranges from 0 to IAnimation::Duration * 1000.
panim
[in] Optional animation to be applied before hit testing. Can be NULL.
pfaceIndex
[out] Returns the index of the face that is under the test coordinates.
phitCoords
[out] Returns the 3d coordinates on the hit face.
ptexCoords
[out] Returns the UV texture coordinates on the hit face.
Return Values
Remarks
See Also
face, IAnimation, IMesh, ISkeleton, matrix, vertex2d, vertex3d
Copyright © 2004-2010 Fragmosoft