|
MeshFactoryCreateArrowMesh(Vector3, Vector3, Single, Int32, Boolean, String) Method |
Create a 3D arrow mesh. The arrow tip radius is set to twice the body radius, and arrow angle is set to 60 degrees.
Namespace: Ab4d.SharpEngine.MeshesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax public static StandardMesh CreateArrowMesh(
Vector3 startPosition,
Vector3 endPosition,
float radius,
int segments,
bool generateTextureCoordinates,
string? name = null
)
Parameters
- startPosition Vector3
- Arrow's start position (the center of circle at the arrow's back).
- endPosition Vector3
- Arrow's end position (the point at the arrow's tip).
- radius Single
- The radius of the arrow's body.
- segments Int32
- Number of segments comprising the circles and the side surface.
- generateTextureCoordinates Boolean
- Generate texture coordinates for the mesh.
- name String (Optional)
- Mesh name (for debug purposes).
Return Value
StandardMeshStandardMesh with filled vertices array and index array.
See Also