Go to: Synopsis. Return value. MEL examples.

Synopsis

getCollisionObjects (string $particleShape)

Returns a string array containing the pathname of the passive objects that each particle in the given particle system collided with in the previous frame. The particle system must have the "collisionGeometryIndex" dynamic attribute added to it. If a particle did not collide with any passive 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
$particleShapestringparticle shape

MEL examples

		// Return list of passive collision shapes for "particleShape1"

 		getCollisionObjects("particleShape1");