/
redgpu
/
GDMagArchive
Обзор
Документация
Войти
/
redgpu
/
GDMagArchive
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
aug00/sharp/fluid/ParticleSys/ConstantExerter.cpp
15 строк
322 B
Don Williamson
first commit
31 окт 2016, 17:03
31 окт 2016, 17:03
c823e7b
Код
Авторство
О чём код?
#include <fluid/ParticleSys/ConstantExerter.h> void ConstantExerter::setForce(const Vector& forceIn) { force = forceIn; } void ConstantExerter::update(PotentialPoints& points, float timePassed) { // Accelerate all existing points for (int i=0; i<points.size(); i++) { points.getPoint(i).force += force; } }