Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/particle_system.c
| Show First 20 Lines • Show All 3,487 Lines • ▼ Show 20 Lines | static void dynamics_step(ParticleSimulationData *sim, float cfra) | ||||
| BLI_srandom(31415926 + (int)cfra + psys->seed); | BLI_srandom(31415926 + (int)cfra + psys->seed); | ||||
| /* for now do both, boids us 'rng' */ | /* for now do both, boids us 'rng' */ | ||||
| rng = BLI_rng_new_srandom(31415926 + (int)cfra + psys->seed); | rng = BLI_rng_new_srandom(31415926 + (int)cfra + psys->seed); | ||||
| psys_update_effectors(sim); | psys_update_effectors(sim); | ||||
| if (part->type != PART_HAIR) | if (part->type != PART_HAIR) | ||||
| sim->colliders = get_collider_cache(sim->scene, sim->ob, NULL); | sim->colliders = get_collider_cache(sim->scene, sim->ob, part->collision_group); | ||||
| /* initialize physics type specific stuff */ | /* initialize physics type specific stuff */ | ||||
| switch (part->phystype) { | switch (part->phystype) { | ||||
| case PART_PHYS_BOIDS: | case PART_PHYS_BOIDS: | ||||
| { | { | ||||
| ParticleTarget *pt = psys->targets.first; | ParticleTarget *pt = psys->targets.first; | ||||
| bbd.sim = sim; | bbd.sim = sim; | ||||
| bbd.part = part; | bbd.part = part; | ||||
| ▲ Show 20 Lines • Show All 845 Lines • Show Last 20 Lines | |||||