|
MeshFactoryCreateArrowMesh(Vector3, Vector3, Single, Single, Single, Single, Int32, Boolean, String) Method |
Create a 3D arrow mesh with parametrized arrow tip.
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,
float arrowRadius,
float arrowAngle,
float maxArrowLength,
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.
- arrowRadius Single
- The radius of the arrow's tip.
- arrowAngle Single
- The slope (angle) of the arrow's tip. Determines tip length along the body direction. The angle can be increased when the arrow length increase the maxArrowLength.
- maxArrowLength Single
- maximum length of the arrow compared to the line length. For example value 0.5f means that the max length of the arrow can be 50% of the line length - in this case the arrow angle is adjusted.
- 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