This reference page is linked to from the following overview topics: Plug-in Base Classes.
#include <springsys.h>
Public Member Functions |
|
SpringSys () | |
SpringSys (SpringSysClient *c, int count) | |
~SpringSys () | |
SpringSysExport SpringSys & | operator= (const SpringSys &from) |
SpringSysExport SpringSys | Copy (const SpringSys *from) |
void | SetReferenceTime (float t) |
float | GetReferenceTime () |
Tab< SSParticle > * | GetParticles () |
SSParticle * | GetParticle (int i) |
SpringSysExport void | SetParticleCount (int count) |
SpringSysExport void | SetInitialPosition (Point3 p, int partIndex) |
SpringSysExport void | SetInitialVelocity (Point3 p, int partIndex) |
SpringSysExport void | SetInitialBoneStates (Tab< Matrix3 > boneTMs) |
SpringSysExport void | Invalidate () |
SpringSysExport void | Solve (int time, float TimeDelta) |
SpringSysExport void | GetPosition (Point3 &p, int index) |
SpringSysExport IOResult | Load (ILoad *iload) |
SpringSysExport IOResult | Save (ISave *isave) |
Protected Member Functions |
|
float | GetTime () |
void | SetTime (float t) |
SpringSysExport void | Clear_Forces (int index) |
SpringSysExport void | Compute_Forces (TimeValue t, int index) |
SpringSysExport void | ApplyDrag (int index) |
SpringSysExport void | ApplyUnaryForces (TimeValue t, int index) |
SpringSysExport void | ComputeControlledParticleForce (Matrix3 tm, int vertIndex, int springIndex) |
SpringSysExport void | ApplySpring (TimeValue t, int index) |
SpringSysExport void | UpdateParticleState (TimeValue t, Tab< Matrix3 > tmArray, int pIndex, TimeValue Delta) |
SpringSysExport void | ComputeDerivative (int index, Point3 &pos, Point3 &vel) |
SpringSysExport void | GetParticleState (int index, Point3 &pos, Point3 &vel) |
SpringSysExport void | SetParticleState (int index, Point3 pos, Point3 vel) |
SpringSysExport void | ScaleVectors (Point3 &pos, Point3 &vel, float delta) |
SpringSysExport void | AddVectors (Point3 pos1, Point3 vel1, Point3 &pos, Point3 &vel) |
SpringSys | ( | ) | [inline] |
{ client = NULL; referenceTime = lastTime = 0.0f; SetParticleCount(1); isValid = false; }
SpringSys | ( | SpringSysClient * | c, |
int | count | ||
) | [inline] |
{ client = c; referenceTime = lastTime = 0.0f; SetParticleCount(count); isValid = false; }
~SpringSys | ( | ) | [inline] |
{}
void SetReferenceTime | ( | float | t | ) | [inline] |
{ referenceTime = t; }
float GetReferenceTime | ( | ) | [inline] |
{ return referenceTime; }
Tab<SSParticle>* GetParticles | ( | ) | [inline] |
{ return &parts;}
SSParticle* GetParticle | ( | int | i | ) | [inline] |
{ if (i >=0 && i< parts.Count()) return &(parts[i]); else return NULL; }
SpringSysExport void SetParticleCount | ( | int | count | ) |
SpringSysExport void SetInitialPosition | ( | Point3 | p, |
int | partIndex | ||
) |
SpringSysExport void SetInitialVelocity | ( | Point3 | p, |
int | partIndex | ||
) |
SpringSysExport void Invalidate | ( | ) |
SpringSysExport void Solve | ( | int | time, |
float | TimeDelta | ||
) |
SpringSysExport void GetPosition | ( | Point3 & | p, |
int | index | ||
) |
float GetTime | ( | ) | [inline, protected] |
{ return lastTime; }
void SetTime | ( | float | t | ) | [inline, protected] |
{ lastTime = t; }
SpringSysExport void Clear_Forces | ( | int | index | ) | [protected] |
SpringSysExport void Compute_Forces | ( | TimeValue | t, |
int | index | ||
) | [protected] |
SpringSysExport void ApplyDrag | ( | int | index | ) | [protected] |
SpringSysExport void ApplyUnaryForces | ( | TimeValue | t, |
int | index | ||
) | [protected] |
SpringSysExport void ComputeControlledParticleForce | ( | Matrix3 | tm, |
int | vertIndex, | ||
int | springIndex | ||
) | [protected] |
SpringSysExport void ApplySpring | ( | TimeValue | t, |
int | index | ||
) | [protected] |
SpringSysExport void UpdateParticleState | ( | TimeValue | t, |
Tab< Matrix3 > | tmArray, | ||
int | pIndex, | ||
TimeValue | Delta | ||
) | [protected] |