HPL3/Amnesia: Rebirth/Scripting/iPhysicsCloth
< HPL3 | Amnesia: Rebirth | Scripting
Jump to navigation
Jump to search
This page has been automatically generated, but it needs descriptions added to the various fields/functions in order to be complete. |
Have some helpful descriptions to add to this class? Edit this page and add your insight to the Wiki!
Contents
- 1 Fields
- 2 Functions
- 3 Details
- 3.1 ApplyForceToParticles
- 3.2 AttachToLine
- 3.3 GetActive
- 3.4 GetClothSize
- 3.5 GetCollide
- 3.6 GetDamping
- 3.7 GetGravityForce
- 3.8 GetName
- 3.9 GetParticle
- 3.10 GetParticleNum
- 3.11 GetParticleRadius
- 3.12 GetSlideAmount
- 3.13 GetUniqueID
- 3.14 GetUpdateCount
- 3.15 GetWindForce
- 3.16 IncUpdateCount
- 3.17 RemoveAttachedBody
- 3.18 SetActive
- 3.19 SetCollide
- 3.20 SetDamping
- 3.21 SetGravityForce
- 3.22 SetParticleRadius
- 3.23 SetSleeping
- 3.24 SetSleepParamters
- 3.25 SetSlideAmount
- 3.26 SetWindForce
- 3.27 UpdateLengthConstraint
- 3.28 UpdateLengthConstraint
- 3.29 UpdateLengthConstraint
- 3.30 UpdateLengthConstraintStretch
- 3.31 UpdateParticleCollisionConstraint
- 4 References
Fields
iPhysicsCloth has no public fields.
Functions
Return Type | Function And Description |
---|---|
void | ApplyForceToParticles(const cVector3f &in avForce, cVerletParticle@ apBaseParticle, const cVector3f &in avOffset = 0) |
void | AttachToLine(cVector3f avStart, cVector3f avEnd, int alRow, int alColumnStride, bool abFixedPositions = false) |
bool | GetActive() |
cVector2f | GetClothSize() |
bool | GetCollide() |
float | GetDamping() |
cVector3f | GetGravityForce() |
tString | GetName() |
cVerletParticle | GetParticle(int alIdx) |
int | GetParticleNum() |
float | GetParticleRadius() |
float | GetSlideAmount() |
int | GetUniqueID() |
int | GetUpdateCount() |
cVector3f | GetWindForce() |
void | IncUpdateCount() |
void | RemoveAttachedBody(iPhysicsBody@ apBody, bool abRemoveContainerFromBody) |
void | SetActive(bool abX) |
void | SetCollide(bool abX) |
void | SetDamping(float afX) |
void | SetGravityForce(const cVector3f &in avX) |
void | SetParticleRadius(float afX) |
void | SetSleeping(bool abX) |
void | SetSleepParamters(float afSleepCheckInterval, float afSleepCheckDistance, int alSleepCountMax) |
void | SetSlideAmount(float afX) |
void | SetWindForce(const cVector3f avWindForce) |
void | UpdateLengthConstraint(cVerletParticle@ apP1, cVerletParticle@ apP2, float afLength) |
void | UpdateLengthConstraint(cVerletParticle@ apP1, cVerletParticle@ apP2, float afLength, float afStiffness) |
void | UpdateLengthConstraint(cVerletParticle@ apP1, cVerletParticle@ apP2, float afMinLength, float afMaxLength, float afStiffness) |
void | UpdateLengthConstraintStretch(cVerletParticle@ apP1, cVerletParticle@ apP2, float afLength, float afStiffness) |
void | UpdateParticleCollisionConstraint(cVerletParticle@ apPart, const cVector3f &in avPrevPos, float afRadius) |
Details
ApplyForceToParticles
void ApplyForceToParticles(const cVector3f &in avForce,
cVerletParticle@ apBaseParticle,
const cVector3f &in avOffset = 0)
Parameters
- avForce (cVector3f) —
- apBaseParticle (cVerletParticle@) —
- avOffset (cVector3f) —
Returns:
- void
AttachToLine
GetActive
bool GetActive()
Returns:
- bool—
GetClothSize
cVector2f GetClothSize()
Returns:
- cVector2f—
GetCollide
bool GetCollide()
Returns:
- bool—
GetDamping
float GetDamping()
Returns:
- float—
GetGravityForce
const cVector3f& GetGravityForce()
Returns:
- const cVector3f&—
GetName
const tString& GetName()
Returns:
- const tString&—
GetParticle
cVerletParticle@ GetParticle(int alIdx)
Parameters
- alIdx (int) —
Returns:
- cVerletParticle@—
GetParticleNum
int GetParticleNum()
Returns:
- int—
GetParticleRadius
float GetParticleRadius()
Returns:
- float—
GetSlideAmount
float GetSlideAmount()
Returns:
- float—
GetUniqueID
int GetUniqueID()
Returns:
- int—
GetUpdateCount
int GetUpdateCount()
Returns:
- int—
GetWindForce
cVector3f GetWindForce()
Returns:
- cVector3f—
IncUpdateCount
void IncUpdateCount()
Returns:
- void
RemoveAttachedBody
void RemoveAttachedBody(iPhysicsBody@ apBody,
bool abRemoveContainerFromBody)
Parameters
- apBody (iPhysicsBody@) —
- abRemoveContainerFromBody (bool) —
Returns:
- void
SetActive
void SetActive(bool abX)
Parameters
- abX (bool) —
Returns:
- void
SetCollide
void SetCollide(bool abX)
Parameters
- abX (bool) —
Returns:
- void
SetDamping
void SetDamping(float afX)
Parameters
- afX (float) —
Returns:
- void
SetGravityForce
SetParticleRadius
void SetParticleRadius(float afX)
Parameters
- afX (float) —
Returns:
- void
SetSleeping
void SetSleeping(bool abX)
Parameters
- abX (bool) —
Returns:
- void
SetSleepParamters
void SetSleepParamters(float afSleepCheckInterval,
float afSleepCheckDistance,
int alSleepCountMax)
Parameters
- afSleepCheckInterval (float) —
- afSleepCheckDistance (float) —
- alSleepCountMax (int) —
Returns:
- void
SetSlideAmount
void SetSlideAmount(float afX)
Parameters
- afX (float) —
Returns:
- void
SetWindForce
UpdateLengthConstraint
void UpdateLengthConstraint(cVerletParticle@ apP1,
cVerletParticle@ apP2,
float afLength)
Parameters
- apP1 (cVerletParticle@) —
- apP2 (cVerletParticle@) —
- afLength (float) —
Returns:
- void
UpdateLengthConstraint
void UpdateLengthConstraint(cVerletParticle@ apP1,
cVerletParticle@ apP2,
float afLength,
float afStiffness)
Parameters
- apP1 (cVerletParticle@) —
- apP2 (cVerletParticle@) —
- afLength (float) —
- afStiffness (float) —
Returns:
- void
UpdateLengthConstraint
void UpdateLengthConstraint(cVerletParticle@ apP1,
cVerletParticle@ apP2,
float afMinLength,
float afMaxLength,
float afStiffness)
Parameters
- apP1 (cVerletParticle@) —
- apP2 (cVerletParticle@) —
- afMinLength (float) —
- afMaxLength (float) —
- afStiffness (float) —
Returns:
- void
UpdateLengthConstraintStretch
void UpdateLengthConstraintStretch(cVerletParticle@ apP1,
cVerletParticle@ apP2,
float afLength,
float afStiffness)
Parameters
- apP1 (cVerletParticle@) —
- apP2 (cVerletParticle@) —
- afLength (float) —
- afStiffness (float) —
Returns:
- void
UpdateParticleCollisionConstraint
void UpdateParticleCollisionConstraint(cVerletParticle@ apPart,
const cVector3f &in avPrevPos,
float afRadius)
Parameters
- apPart (cVerletParticle@) —
- avPrevPos (cVector3f) —
- afRadius (float) —
Returns:
- void