메소드 | 설명 | |
---|---|---|
AddMesh ( Microsoft.Xna.Framework.Graphics.ModelMesh collisionModelMesh, Matrix transform, List |
Adds a mesh's vertices and indices to the given lists.
|
|
GetVerticesAndIndicesFromModel ( |
Gets an array of vertices and indices from the provided model.
|
|
RayCast ( Ray ray, IList |
Tests a ray against the triangle mesh.
|
|
RayCast ( Ray ray, |
Tests a ray against the triangle mesh.
|
|
RayCast ( Ray ray, TriangleSidedness sidedness, IList |
Tests a ray against the triangle mesh.
|
|
RayCast ( Ray ray, TriangleSidedness sidedness, |
Tests a ray against the triangle mesh.
|
|
RayCast ( Ray ray, float maximumLength, IList |
Tests a ray against the triangle mesh.
|
|
RayCast ( Ray ray, float maximumLength, |
Tests a ray against the triangle mesh.
|
|
RayCast ( Ray ray, float maximumLength, TriangleSidedness sidedness, IList |
Tests a ray against the triangle mesh.
|
|
RayCast ( Ray ray, float maximumLength, TriangleSidedness sidedness, |
Tests a ray against the triangle mesh.
|
|
RayCast ( Ray ray, int &hitCount ) : bool |
Tests a ray against the triangle mesh.
|
|
TriangleMesh ( |
Constructs a new triangle mesh.
|
public static AddMesh ( Microsoft.Xna.Framework.Graphics.ModelMesh collisionModelMesh, Matrix transform, List |
||
collisionModelMesh | Microsoft.Xna.Framework.Graphics.ModelMesh | Model to use for the collision shape. |
transform | Matrix | Transform to apply to the mesh. |
vertices | List |
List to receive vertices from the mesh. |
indices | IList |
List to receive indices from the mesh. |
리턴 | void |
public static GetVerticesAndIndicesFromModel ( |
||
collisionModel | Model to use for the collision shape. | |
vertices | Microsoft.Xna.Framework.Vector3 | Compiled set of vertices from the model. |
indices | int | Compiled set of indices from the model. |
리턴 | void |
public RayCast ( Ray ray, IList |
||
ray | Ray | Ray to test against the mesh. |
hits | IList |
Hit data for the ray, if any. |
리턴 | bool |
public RayCast ( Ray ray, |
||
ray | Ray | Ray to test against the mesh. |
rayHit | Hit data for the ray, if any. | |
리턴 | bool |
public RayCast ( Ray ray, TriangleSidedness sidedness, IList |
||
ray | Ray | Ray to test against the mesh. |
sidedness | TriangleSidedness | Sidedness to apply to the mesh for the ray cast. |
hits | IList |
Hit data for the ray, if any. |
리턴 | bool |
public RayCast ( Ray ray, TriangleSidedness sidedness, |
||
ray | Ray | Ray to test against the mesh. |
sidedness | TriangleSidedness | Sidedness to apply to the mesh for the ray cast. |
rayHit | Hit data for the ray, if any. | |
리턴 | bool |
public RayCast ( Ray ray, float maximumLength, IList |
||
ray | Ray | Ray to test against the mesh. |
maximumLength | float | Maximum length of the ray in units of the ray direction's length. |
hits | IList |
Hit data for the ray, if any. |
리턴 | bool |
public RayCast ( Ray ray, float maximumLength, |
||
ray | Ray | Ray to test against the mesh. |
maximumLength | float | Maximum length of the ray in units of the ray direction's length. |
rayHit | Hit data for the ray, if any. | |
리턴 | bool |
public RayCast ( Ray ray, float maximumLength, TriangleSidedness sidedness, IList |
||
ray | Ray | Ray to test against the mesh. |
maximumLength | float | Maximum length of the ray in units of the ray direction's length. |
sidedness | TriangleSidedness | Sidedness to apply to the mesh for the ray cast. |
hits | IList |
Hit data for the ray, if any. |
리턴 | bool |
public RayCast ( Ray ray, float maximumLength, TriangleSidedness sidedness, |
||
ray | Ray | Ray to test against the mesh. |
maximumLength | float | Maximum length of the ray in units of the ray direction's length. |
sidedness | TriangleSidedness | Sidedness to apply to the mesh for the ray cast. |
rayHit | Hit data for the ray, if any. | |
리턴 | bool |
public RayCast ( Ray ray, int &hitCount ) : bool | ||
ray | Ray | Ray to test against the mesh. |
hitCount | int | Number of hits between the ray and the mesh. |
리턴 | bool |
public TriangleMesh ( |
||
data | Data to use to construct the mesh. | |
리턴 | System.Collections.Generic |