script (MEL) |
Only available in MEL |
getCollisionActiveObjects |
In categories: Effects, Dynamics |
Go to: Synopsis. Return value. MEL examples.
getCollisionActiveObjects (string $nParticleShape)
Returns a string array containing the pathname of the active objects
that each particle in the given particle system collided with in
the previous frame. The particle system must have the
"collisionActiveGeometryIndex" dynamic attribute added to it.
If a particle did not collide with any active object in the previous
frame, then the array entry for that particle will contain an empty
string.
None
Arguments
Variable Name |
Variable Type |
Description |
$nParticleShape | string | nParticle shape
|
// Return list of active collision shapes for "nParticleShape1"
getCollisionActiveObjects("nParticleShape1");