HairGuideDynamics Class Reference Library » 头发

#include <lib_hair.h>

详细描述

Contains hair dynamics information. Cannot be allocated.

公共成员函数

HairGuides GetGuides ()
向量   GetPosition ( Int32 i)
void  SetPosition ( Int32 i, const 向量 &p)
向量   GetLastPosition ( Int32 i)
void  SetLastPosition ( Int32 i, const 向量 &p)
向量   GetVelocity ( Int32 i)
void  SetVelocity ( Int32 i, const 向量 &v)
Float   GetMass ( Int32 i)
void  SetMass ( Int32 i, Float m)
向量   GetForce ( Int32 i)
void  AddForce ( Int32 i, const 向量 &f)
Int32   GetPolygonIntersections ( HairPolygonHit **hits)

私有成员函数

  HairGuideDynamics ()
  ~HairGuideDynamics ()

构造函数 & 析构函数文档编制

◆  HairGuideDynamics()

HairGuideDynamics () private

◆  ~HairGuideDynamics()

~ HairGuideDynamics () private

成员函数文档编制

◆  GetGuides()

HairGuides * GetGuides ( )

Gets the corresponding hair guide data.

返回
The hair guide data.

◆  GetPosition()

向量 GetPosition ( Int32   i )

Gets the position of the specified guide i .

参数
[in] i The guide index.
返回
The position.

◆  SetPosition()

void SetPosition ( Int32   i ,
const 向量 p  
)

Sets the position of the specified guide i .

参数
[in] i The guide index.
[in] p The new position.

◆  GetLastPosition()

向量 GetLastPosition ( Int32   i )

Gets the last position of the specified guide i .

参数
[in] i The guide index.
返回
The last position.

◆  SetLastPosition()

void SetLastPosition ( Int32   i ,
const 向量 p  
)

Sets the last position of the specified guide i .

参数
[in] i The guide index.
[in] p The new last position.

◆  GetVelocity()

向量 GetVelocity ( Int32   i )

Gets the velocity of the specified guide i .

参数
[in] i The guide index.
返回
The velocity.

◆  SetVelocity()

void SetVelocity ( Int32   i ,
const 向量 v  
)

Sets the velocity of the specified guide i .

参数
[in] i The guide index.
[in] v The new velocity.

◆  GetMass()

Float GetMass ( Int32   i )

Gets the mass of the specified guide i .

参数
[in] i The guide index.
返回
The mass.

◆  SetMass()

void SetMass ( Int32   i ,
Float   m  
)

Sets the mass of the specified guide i .

参数
[in] i The guide index.
[in] m The new mass.

◆  GetForce()

向量 GetForce ( Int32   i )

Gets the force of the specified guide i .

参数
[in] i The guide index.
返回
The force.

◆  AddForce()

void AddForce ( Int32   i ,
const 向量 f  
)

Adds the force of the specified guide i .

参数
[in] i The guide index.
[in] f The force to add.

◆  GetPolygonIntersections()

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.
返回
The number of hits or NOTOK if an error occurred.