36#define SimpleParticle 1
41#define MAX_INF 9999999999.0f
42#define MIN_INF -9999999999.0f
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 };
110 (*this)[
Z] += ((*this)[
Z] -
old_pos) * local_damping + acceleration[
Z] * time;
114 (*this) += ((*this) -
old_pos) * (1.0f - DAMPING) + acceleration * time;
119#ifndef SimpleParticle
120 void resetAcceleration()
124 void addForce(
const Vector<3, fltp04>& f)
126 acceleration += f / mass;
138#ifndef SimpleParticle
#define SimpleParticle
Definition Particle.h:36
bool isMovable() const
Definition Particle.h:95
void makeUnmovable()
Definition Particle.h:129
void timeStep(fltp04 time, const Vector< 3, fltp04 > &acceleration)
Definition Particle.h:105
Particle(const Vector< 3, fltp04 > &pos)
Definition Particle.h:70
bool movable
Definition Particle.h:148
fltp04 old_pos
Definition Particle.h:144
Particle()
Definition Particle.h:83
An element of a vector space. An element of the real coordinate space Rn Basis vector,...
Definition Vector.hpp:62
A vertex.
Definition Vertex.hpp:54
const fltp04 singleMove1[15]
Definition Particle.h:62
float fltp04
Defines an alias representing a 4 byte floating-point number.
Definition BaseValues.hpp:157
constexpr fltp04 damping_factor
Definition Particle.h:40
const fltp04 doubleMove1[15]
Definition Particle.h:63
@ Z
Definition BaseValues.hpp:204
Definition BaseValues.hpp:272