HPL3/Amnesia: Rebirth/Scripting/cVerletParticle

From Frictional Wiki
< HPL3‎ | Amnesia: Rebirth‎ | Scripting
Revision as of 22:59, 15 November 2020 by Abion47 (talk | contribs) (Created page with "{{ScriptingStub}} Have some helpful descriptions to add to this class? Edit this page and add your insight to the Wiki! ==Fields== cVerletParticle has no public fields. ==F...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Have some helpful descriptions to add to this class? Edit this page and add your insight to the Wiki!

Fields

cVerletParticle has no public fields.

Functions

Return Type Function And Description
void AddForce(const cVector3f &in avForce)
void AddPosition(const cVector3f &in avAdd, bool abSetPrevPos)
float GetInvMass()
cVector3f GetPosition()
cVector3f GetPrevPosition()
cVector3f GetSmoothPosition()
void SetInvMass(float afInvMass)
void SetPosition(const cVector3f &in avPos, bool abSetPrevPos)
void SetPrevPosition(const cVector3f &in avPos)
void SetSmoothPosition(const cVector3f &in avPos)

Details

AddForce

void AddForce(const cVector3f &in avForce)


Parameters

Returns:

  • void

AddPosition

void AddPosition(const cVector3f &in avAdd,
                 bool abSetPrevPos)


Parameters

  • avAdd (cVector3f) —
  • abSetPrevPos (bool) —

Returns:

  • void

GetInvMass

float GetInvMass()

Returns:

  • float

GetPosition

const cVector3f& GetPosition()

Returns:

  • const cVector3f&

GetPrevPosition

const cVector3f& GetPrevPosition()

Returns:

  • const cVector3f&

GetSmoothPosition

const cVector3f& GetSmoothPosition()

Returns:

  • const cVector3f&

SetInvMass

void SetInvMass(float afInvMass)


Parameters

  • afInvMass (float) —

Returns:

  • void

SetPosition

void SetPosition(const cVector3f &in avPos,
                 bool abSetPrevPos)


Parameters

  • avPos (cVector3f) —
  • abSetPrevPos (bool) —

Returns:

  • void

SetPrevPosition

void SetPrevPosition(const cVector3f &in avPos)


Parameters

Returns:

  • void

SetSmoothPosition

void SetSmoothPosition(const cVector3f &in avPos)


Parameters

Returns:

  • void

References

See all references...