PBDParticleEntity#
- class genesis.engine.entities.pbd_entity.PBDParticleEntity(scene, solver, material, morph, surface, particle_size, idx, particle_start)[source]#
Bases:
ParticleEntityPBD entity represented solely by particles.
- Parameters:
scene (Scene) – The simulation scene this entity is part of.
solver (Solver) – The PBD solver instance managing this entity.
material (Material) – Material model defining physical properties such as density and compliance.
morph (Morph) – Morph object specifying shape and initial transform (position and rotation).
surface (Surface) – Surface or texture representation.
particle_size (float) – Target size for particle spacing.
idx (int) – Unique index of this entity within the scene.
particle_start (int) – Starting index of this entity’s particles in the global particle buffer.
- process_input(in_backward=False)[source]#
Push position, velocity, and activation target states into the simulator.
- Parameters:
in_backward (bool, default=False) – Whether the simulation is in the backward (gradient) pass.
- property n_fluid_particles#
The number of fluid particles.