Aerodynamic Objects Core 2.0.0
Loading...
Searching...
No Matches
AerodynamicObjects.ArrowComponent Class Referenceabstract

Base class for arrows that are used to represent different vector values. More...

Inheritance diagram for AerodynamicObjects.ArrowComponent:
AerodynamicObjects.BuoyancyArrow AerodynamicObjects.Control.SimpleThrustArrow AerodynamicObjects.DragArrow AerodynamicObjects.LiftArrow AerodynamicObjects.RotationalLiftArrow AerodynamicObjects.UserDragArrow AerodynamicObjects.WeightArrow AerodynamicObjects.WindArrow

Classes

class  Arrow
 

Public Member Functions

abstract void CleanUp ()
 Remove any arrows when the class has been destroyed. More...
 
AeroObject TryGetAeroObject ()
 
void SetArrowPositionAndRotation (Arrow arrow, float length, Vector3 rootPosition, Vector3 direction)
 
void SetArrowPositionAndRotationFromVector (Arrow arrow, Vector3 vector, Vector3 rootPosition)
 

Public Attributes

float Diameter = 0.2f
 Width of the arrow. More...
 
float Sensitivity = 1f
 Scaling of the arrow length with the value it represents. More...
 
float Offset = 0f
 Distance between the arrow head and the point of action More...
 
float HeadFractionOfLength = 0.25f
 The fraction of the arrow's length that is used to draw the head of the arrow. More...
 
float MinimumLength = 0.01f
 If the arrow would be smaller than this length then it will not be drawn. More...
 
bool HeadAimsAtPoint
 Does the arrow point towards the point of action or away from it More...
 
bool UseCoefficientForScale
 Use the coefficient for the aerodynamic force to scale the length of the arrow? More...
 

Properties

static GameObject ArrowContainer [get]
 

Detailed Description

Base class for arrows that are used to represent different vector values.

Member Function Documentation

◆ CleanUp()

◆ SetArrowPositionAndRotation()

void AerodynamicObjects.ArrowComponent.SetArrowPositionAndRotation ( Arrow  arrow,
float  length,
Vector3  rootPosition,
Vector3  direction 
)

◆ SetArrowPositionAndRotationFromVector()

void AerodynamicObjects.ArrowComponent.SetArrowPositionAndRotationFromVector ( Arrow  arrow,
Vector3  vector,
Vector3  rootPosition 
)

◆ TryGetAeroObject()

AeroObject AerodynamicObjects.ArrowComponent.TryGetAeroObject ( )

Member Data Documentation

◆ Diameter

float AerodynamicObjects.ArrowComponent.Diameter = 0.2f

Width of the arrow.

(m)

◆ HeadAimsAtPoint

bool AerodynamicObjects.ArrowComponent.HeadAimsAtPoint

Does the arrow point towards the point of action or away from it

◆ HeadFractionOfLength

float AerodynamicObjects.ArrowComponent.HeadFractionOfLength = 0.25f

The fraction of the arrow's length that is used to draw the head of the arrow.

◆ MinimumLength

float AerodynamicObjects.ArrowComponent.MinimumLength = 0.01f

If the arrow would be smaller than this length then it will not be drawn.

◆ Offset

float AerodynamicObjects.ArrowComponent.Offset = 0f

Distance between the arrow head and the point of action

◆ Sensitivity

float AerodynamicObjects.ArrowComponent.Sensitivity = 1f

Scaling of the arrow length with the value it represents.

A larger sensitivity will give longer arrows.

◆ UseCoefficientForScale

bool AerodynamicObjects.ArrowComponent.UseCoefficientForScale

Use the coefficient for the aerodynamic force to scale the length of the arrow?

Property Documentation

◆ ArrowContainer

GameObject AerodynamicObjects.ArrowComponent.ArrowContainer
staticget

The documentation for this class was generated from the following file: