Go to: Synopsis. Return value. MEL examples.

Synopsis

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.

Return value

None

Arguments

Variable Name Variable Type Description
$nParticleShapestringnParticle shape

MEL examples

		// Return list of active collision shapes for "nParticleShape1"
 		getCollisionActiveObjects("nParticleShape1");