Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom colliders / Interaction with Obi Particles
#6
Thanks a lot for the code, David!
There's already a couple methods in the API that do what you ask, but they're still undocumented (for some reason we write code faster than we write docs Triste):


Code:
AddParticleExternalForces(solver, forces, particle_indices, num);

AddParticleExternalForce(solver, force, particle_indices, num);


The first method takes an array of forces and an array of particle indices. It applies forces[i] to particle_indices[i]. 

The second variation applies the same force to all particles in the array.
Reply


Messages In This Thread
RE: Integration / Water Areas - by josemendez - 20-06-2017, 09:37 AM
RE: Custom colliders / Interaction with Obi Particles - by josemendez - 22-06-2017, 12:13 PM