62 const fltp04 singleMove1[15] = { 0, 0.3f, 0.51f, 0.657f, 0.7599f, 0.83193f, 0.88235f, 0.91765f, 0.94235f, 0.95965f, 0.97175f, 0.98023f, 0.98616f, 0.99031f, 0.99322f };
63 const fltp04 doubleMove1[15] = { 0, 0.3f, 0.42f, 0.468f, 0.4872f, 0.4949f, 0.498f, 0.4992f, 0.4997f, 0.4999f, 0.4999f, 0.5f, 0.5f, 0.5f, 0.5f };
68 class Particle :
public Vertex<3, fltp04>
72 : Vertex<3, fltp04>(pos)
85 : Vertex<3, fltp04>(0, 0, 0)
96 bool isMovable()
const
108 constexpr fltp04 local_damping = (1.0f - damping_factor);
111 (*this)[Z] += ((*this)[Z] - old_pos) * local_damping + acceleration[Z] * time;
115 (*this) += ((*this) - old_pos) * (1.0f - DAMPING) + acceleration * time;
120#ifndef SimpleParticle
121 void resetAcceleration()
127 acceleration += f / mass;
139#ifndef SimpleParticle
Used with CSF Cloth, The particle class represents a particle of mass that can move around in 3D spac...