3#include <Foundation/Containers/DynamicArray.h>
4#include <Foundation/Math/Vec3.h>
5#include <Foundation/SimdMath/SimdFloat.h>
6#include <Foundation/SimdMath/SimdVec4f.h>
7#include <Foundation/Time/Time.h>
8#include <GameEngine/GameEngineDLL.h>
21 bool m_bFixed =
false;
27 plUInt8 m_uiWidth = 32;
30 plUInt8 m_uiHeight = 32;
36 float m_fDampingFactor = 0.995f;
44 void SimulateCloth(
const plTime& diff);
46 bool HasEquilibrium(
plSimdFloat fAllowedMovement)
const;
50 void UpdateNodePositions(
const plSimdFloat tDiffSqr);
A simple simulator for swinging and hanging cloth.
Definition ClothSheetSimulator.h:16
plDynamicArray< Node, plAlignedAllocatorWrapper > m_Nodes
All cloth nodes.
Definition ClothSheetSimulator.h:42
plVec3 m_vAcceleration
Overall force acting equally upon all cloth nodes.
Definition ClothSheetSimulator.h:33
Definition DynamicArray.h:81
A 4-component SIMD vector class.
Definition SimdVec4f.h:8
static plSimdVec4f MakeZero()
Creates an plSimdVec4f that is initialized to zero.
Definition SimdVec4f_inl.h:8
Definition ClothSheetSimulator.h:19
The time class encapsulates a double value storing the time in seconds.
Definition Time.h:12