Click or drag to resize
Ab4d.SharpEngine logo

ArrowModelNode Class

A 3D arrow model.
Inheritance Hierarchy

Namespace: Ab4d.SharpEngine.SceneNodes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 1.0.8740+deb2991acfe86a95cca780cd4f82bcae2805c1a5
Syntax
C#
public class ArrowModelNode : ModelNode

The ArrowModelNode type exposes the following members.

Constructors
 NameDescription
Public methodArrowModelNode Create a 3D arrow model.
Public methodArrowModelNode(String) Create a 3D arrow model.
Public methodArrowModelNode(Material, String) Create a 3D arrow model.
Public methodArrowModelNode(Vector3, Vector3, Single, String) Create a 3D arrow model with parametrized arrow tip.
Public methodArrowModelNode(Vector3, Vector3, Single, Single, Single, Int32, Boolean, String) Create a 3D arrow model with parametrized arrow tip.
Public methodArrowModelNode(Vector3, Vector3, Single, Single, Single, Int32, Boolean, Material, String) Create a 3D arrow model with parametrized arrow tip and specified material.
Top
Properties
 NameDescription
Public propertyArrowAngle The slope (angle in degrees) of the arrow's tip. Determines tip length along the body direction. Default value is 30. The angle can be increased when the arrow length increase the MaxArrowLength. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method.
Public propertyArrowRadius The radius of the arrow's tip. If the value is not set (is 0), than arrow radius is calculated my multiplying the Radius with 2.5. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method.
Public propertyEndPosition Arrow's end position (the point at the arrow's tip). Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method.
Public propertyGenerateTextureCoordinates Gets or sets a Boolean that specified is texture coordinates for the mesh are generated. Default value is false. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method.
Public propertyMaxArrowLength maximum length of the arrow compared to the line length. For example, the default value 0.33f means that the max length of the arrow can be 33% of the line length - in this case the arrow angle is adjusted.
Public propertyRadius The radius of the arrow's body. Default value is 1. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method.
Public propertySegments Number of segments comprising the circles and the side surface. Default value is 30. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method.
Public propertyStartPosition Arrow's start position (the center of circle at the arrow's back). Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method.
Top
Methods
 NameDescription
Protected methodUpdateMesh UpdateMesh method recreates the mesh based on the current object properties. The method should be overriden in the derived class that provides its own mesh generation.
(Overrides ModelNodeUpdateMesh)
Top
See Also