-
首页
-
C4D R23.110 C++ SDK
HairGuideDynamics Class Reference
Library
»
头发
#include <lib_hair.h>
详细描述
Contains hair dynamics information. Cannot be allocated.
构造函数 & 析构函数文档编制
◆
HairGuideDynamics()
◆
~HairGuideDynamics()
成员函数文档编制
◆
GetGuides()
Gets the corresponding hair guide data.
-
返回
-
The hair guide data.
◆
GetPosition()
Gets the position of the specified guide
i
.
-
参数
-
-
返回
-
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()
Gets the last position of the specified guide
i
.
-
参数
-
-
返回
-
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()
Gets the velocity of the specified guide
i
.
-
参数
-
-
返回
-
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()
Gets the mass of the specified guide
i
.
-
参数
-
-
返回
-
The mass.
◆
SetMass()
Sets the mass of the specified guide
i
.
-
参数
-
[in]
|
i
|
The guide index.
|
[in]
|
m
|
The new mass.
|
◆
GetForce()
Gets the force of the specified guide
i
.
-
参数
-
-
返回
-
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()
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.