#include <lib_hair.h>
Contains hair dynamics information. Cannot be allocated.
Public Member Functions | |
| HairGuides * | GetGuides () |
| Vector | GetPosition (Int32 i) |
| void | SetPosition (Int32 i, const Vector &p) |
| Vector | GetLastPosition (Int32 i) |
| void | SetLastPosition (Int32 i, const Vector &p) |
| Vector | GetVelocity (Int32 i) |
| void | SetVelocity (Int32 i, const Vector &v) |
| Float | GetMass (Int32 i) |
| void | SetMass (Int32 i, Float m) |
| Vector | GetForce (Int32 i) |
| void | AddForce (Int32 i, const Vector &f) |
| Int32 | GetPolygonIntersections (HairPolygonHit **hits) |
Private Member Functions | |
| HairGuideDynamics () | |
| ~HairGuideDynamics () | |
|
private |
|
private |
| HairGuides* GetGuides | ( | ) |
Gets the corresponding hair guide data.
Gets the position of the specified guide i.
| [in] | i | The guide index. |
Sets the position of the specified guide i.
| [in] | i | The guide index. |
| [in] | p | The new position. |
Gets the last position of the specified guide i.
| [in] | i | The guide index. |
Sets the last position of the specified guide i.
| [in] | i | The guide index. |
| [in] | p | The new last position. |
Gets the velocity of the specified guide i.
| [in] | i | The guide index. |
Sets the velocity of the specified guide i.
| [in] | i | The guide index. |
| [in] | v | The new velocity. |
Gets the mass of the specified guide i.
| [in] | i | The guide index. |
Sets the mass of the specified guide i.
| [in] | i | The guide index. |
| [in] | m | The new mass. |
Gets the force of the specified guide i.
| [in] | i | The guide index. |
Adds the force of the specified guide i.
| [in] | i | The guide index. |
| [in] | f | The force to add. |
| Int32 GetPolygonIntersections | ( | HairPolygonHit ** | hits | ) |
Gets the polygon intersection data.
| [out] | hits | Filled with a pointer to an array of polygon hits. Need to be freed with DeleteMem() by the caller. |